Basicly what I need is to be able to rename an XmlElement (which is not possible in .NET afaik).
Is there a way to ImportNode an XmlElement and rename that new XmlElement?
XmlElement oldElm; XmlDocument doc; XmlElement newElm = (XmlElement) doc.ImportNode(oldElm, true); newElm.Rename("newElmName", "urn:newElmNameSpace");
or something similar...
What I want to avoid is to write a loop where I import the childnodes into a newly created element...
Is this possible (in .NET)?