I’ve got the following (simplified) XML…
<root type="object">
<user type="object">
<id type="number">123</id>
</user>
<id type="number">456</id>
</root>
I’m using the following to get the Id from the root element
Dim Navigator = Document.CreateNavigator()
Dim ns = New XmlNamespaceManager(Navigator.NameTable)
Dim nodes = Navigator.Select("/root", ns)
Dim Node = nodes.Current
Element = Node.SelectSingleNode("/id")
Dim Id = Element.Value
In this case, Element.Value contains the User Id
What’s the correct selector for the root Id?
Why don’t you select the root-id node directly?