A
Arjen
Hi,
Can someone help me to update my XML file?
This is what I have.
XmlDoc.Load(MapPath("~/myFile.xml"));
XmlNodeList oXmlUser = oXmlDoc.GetElementsByTagName("user");
foreach (XmlNode user in oXmlUser) {
// if user found, update and save/update file
}
I can find the user. And think to update it like this:
user.ChildNodes.Item(1).InnerText = "new";
But I don't know how to save/update the file.
How can I do that?
Thanks!
Can someone help me to update my XML file?
This is what I have.
XmlDoc.Load(MapPath("~/myFile.xml"));
XmlNodeList oXmlUser = oXmlDoc.GetElementsByTagName("user");
foreach (XmlNode user in oXmlUser) {
// if user found, update and save/update file
}
I can find the user. And think to update it like this:
user.ChildNodes.Item(1).InnerText = "new";
But I don't know how to save/update the file.
How can I do that?
Thanks!