c# update xml file

Posted by Pila on Stack Overflow See other posts from Stack Overflow or by Pila
Published on 2010-05-13T13:04:08Z Indexed on 2010/05/13 13:14 UTC
Read the original article Hit count: 150

Filed under:
|
|

I want to replace a xml node that is not a child of the root element. how can I do it - not in .Net 3.5? I don't know the exact path to the node I want to replace, I get the node by XPath query like :

XmlElement root = doc.DocumentElement;
oldItem = root.SelectSingleNode("//Node1[@name='aaa']//Node2[Item='bbb']/Value");

how can I replace this olditem?

© Stack Overflow or respective owner

Related posts about c#

Related posts about Xml