I know that it\'s possible to get any XML node using C# if you know the node name, but I want to get the root node so that I can find out the name. Is this possible?
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