Click to See Complete Forum and Search --> : Update XML textNode ASP.Net/VB.Net


lmod
08-22-2005, 03:44 PM
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.Net

A1ien51
08-22-2005, 07:57 PM
Here is an article that may help you:
http://www.dotnetjohn.com/articles.aspx?articleid=81

Eric

lmod
08-22-2005, 08:25 PM
Here is an article that may help you:
http://www.dotnetjohn.com/articles.aspx?articleid=81

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.

A1ien51
08-22-2005, 08:56 PM
Whoops, my mistake, I though that one had manipulating....

Look at the Update link here:
http://www.example-code.com/vbdotnet/xml.asp

See if this works...
Eric