EDN Admin
Well-known member
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
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