I am new to XPath.
Using C# I am trying to read the XML file which has a parent node and multiple child nodes
With XPathNavigator, I do a Select on root/parent and assign this value to XPathNodeIterator
XPathNodeIterator ni = _xpathNavigator.Select(theTag);
Then I move to Next When I use ni.Current.Value
I get text value from Parent as well as both Child1 and Child2
What I want to get is the value of Parent only
The OuterText is giving similar results.
Anybody aware of how to get this working?