1. Open the document with the XmlDocument class.
XmlDocument MyDoc = new XmlDocument();
MyDoc.Load("C:\MyDoc.xml");
2. Grab the node into an XmlNode object.
XmlNode MyNode = MyDoc.SelectSingleNode("//mynodes[@id='1']");
3. Edit the text using MyNode.InnerText = "my new text".
MyNode.InnerText = "Some new text here";
4. Save the Xml Document.
XmlDocument.Save("C:\MyDoc.xml");
The example above hasn't been tested, and might need some small tweaking,
but should give you a general idea of what you need to do.
Hope this helps,
Mun
<jo*****@hotmail.com> wrote in message
news:uD**************@tk2msftngp13.phx.gbl...
how do i update the content of a tag in xml?
Thanks in advance