Quantcast
Channel: How to Rename a Node?
Browsing all 4 articles
Browse latest View live

How to Rename a Node?

Thanks, all. This helped me with my project. Here is a slight variation for that allows you to rename an XmlNode. static XmlNode RenameNode(XmlNode e, string newName) { XmlDocument doc =...

View Article



How to Rename a Node?

Good work, Chris.  However, the method as stated will fail if the element to be renamed is the root element of the document.  Specifically, the InsertBefore method will throw an exception because the...

View Article

How to Rename a Node?

There is not. But this should do the trick:staticXmlElement RenameElement(XmlElement e, string newName) {    XmlDocument doc = e.OwnerDocument;    XmlElement newElement = doc.CreateElement(newName);...

View Article

How to Rename a Node?

Hi is there a function to rename a node in an xml document because i cant find one.  I.e. <Rename this> blah blah </Rename This>ThanksPhil Winder

View Article
Browsing all 4 articles
Browse latest View live




Latest Images