gerry lowry:Also, is there any difference ever, between ".InnerXml" and ".Value"?
Sure is. For XML elements, Value contains all the ordinary text between a node's starting and ending tag, and InnerXml contains everything between a node's starting and ending tag.
So if I have an XPathNavigator positioned at this node:
<my:group2 my:field4="Hi">
<my:field1>Hello</my:field1>
<my:field2 my:field5="yay">Goodbye</my:field2>
<my:field3></my:field3>
</my:group2>
InnerXml would be:
<my:field1>Hello</my:field1>
<my:field2 my:field5="yay">Goodbye</my:field2>
<my:field3></my:field3>
And Value would be:
Hello
Goodbye
For leaf nodes, InnerXml and Value should typically be the same, but I'd suggest using Value for getting a node's value as that's what it's intended for.