Does anyone know a way and/or a tutorial that shows how to update a XML textNode value?
ex:
XMLDoc
<ParentNode>
<ChildNode1>
<ValueNode1>SomeData</ValueNode1>
<ValueNode2>SomeMoreData</ValueNode2>
<ValueNode3>EvenMoreData</ValueNode3>
</ChildNode1>
</ParentNode>
I would like to know how to change,
<ValueNode2>SomeMoreData</ValueNode2>
To
<ValueNode2>UpdatedMoreData</ValueNode2>
language VB.Net/Asp.NetHere is an article that may help you:
<!-- m --><a class="postlink" href="http://www.dotnetjohn.com/articles.aspx?articleid=81">http://www.dotnetjohn.com/articles.aspx?articleid=81</a><!-- m -->
EricHere is an article that may help you:
<!-- m --><a class="postlink" href="http://www.dotnetjohn.com/articles.aspx?articleid=81">http://www.dotnetjohn.com/articles.aspx?articleid=81</a><!-- m -->
Eric
That is a good article for an introduction to reading/manipulating XML data, however, it has nothing about writing / inserting or updating the xml doc or individual nodes.Whoops, my mistake, I though that one had manipulating....
Look at the Update link here:
<!-- m --><a class="postlink" href="http://www.example-code.com/vbdotnet/xml.asp">http://www.example-code.com/vbdotnet/xml.asp</a><!-- m -->
See if this works...
Eric
ex:
XMLDoc
<ParentNode>
<ChildNode1>
<ValueNode1>SomeData</ValueNode1>
<ValueNode2>SomeMoreData</ValueNode2>
<ValueNode3>EvenMoreData</ValueNode3>
</ChildNode1>
</ParentNode>
I would like to know how to change,
<ValueNode2>SomeMoreData</ValueNode2>
To
<ValueNode2>UpdatedMoreData</ValueNode2>
language VB.Net/Asp.NetHere is an article that may help you:
<!-- m --><a class="postlink" href="http://www.dotnetjohn.com/articles.aspx?articleid=81">http://www.dotnetjohn.com/articles.aspx?articleid=81</a><!-- m -->
EricHere is an article that may help you:
<!-- m --><a class="postlink" href="http://www.dotnetjohn.com/articles.aspx?articleid=81">http://www.dotnetjohn.com/articles.aspx?articleid=81</a><!-- m -->
Eric
That is a good article for an introduction to reading/manipulating XML data, however, it has nothing about writing / inserting or updating the xml doc or individual nodes.Whoops, my mistake, I though that one had manipulating....
Look at the Update link here:
<!-- m --><a class="postlink" href="http://www.example-code.com/vbdotnet/xml.asp">http://www.example-code.com/vbdotnet/xml.asp</a><!-- m -->
See if this works...
Eric