How to remove all child nodes of an XmlElement, but keep all attributes?
XmlElement
Note, that XmlElement.RemoveAll also removes all attributes. What is a clean, e
Would this solution not be simpler?
while(e.FirstChild != null) e.RemoveChild(e.FirstChild);