SyntaxFix
Write A Post
Hire A Developer
Questions
Root node is the DocumentElement property of XmlDocument
DocumentElement
XmlDocument
XmlElement root = xmlDoc.DocumentElement
If you only have the node, you can get the root node by
XmlElement root = xmlNode.OwnerDocument.DocumentElement