To find an XML node (simple code)

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi all,
I have an xml file as below. I need a vb.net code to help me know whether there is node <myPC> and if so I would like to read and change the value of node <sqlserver-instance> from "SQLEXPRESS" to "MyInstance". How the code should be look like?
Or maybe you can show me how to write to the file like this: <span><<span>sqlserver-instance<span>><span>SQLEXPRESS<span></<span>sqlserver-instance<span>>
TY
<?xml version="1.0" encoding="ISO-8859-1"?><br/>
< !-- Assistant --><br/>
< machines><br/>
<myPC><br/>
<sqlserver-instance xmlns="SQLEXPRESS" /><br/>
</myPC><br/>
< /machines> <hr class="sig David De

View the full article
 
Back
Top