M
Michael Bray
I'm using an XPathNodeIterator (xpi) to navigate an xml document, and I'm
trying to use the Evaluate function to simply retrieve the value of a child
node, but it isn't working like I would expect...
The data is really simple...
<A>
<B name='xyz'>
<value>Text</value>
</B>
</A>
At some point, when my xpi.Current points to the B node (because
xpi.GetAttribute("name") = xyz) I want to get the text inside the <value>
child, so I call xpi.Current.Evaluate("value") which I would have thought
would give me the value, but it returns the xpi itself (in other words,
xpi.Evaluate("value") returns xpi.)
What am I missing??
-mdb
trying to use the Evaluate function to simply retrieve the value of a child
node, but it isn't working like I would expect...
The data is really simple...
<A>
<B name='xyz'>
<value>Text</value>
</B>
</A>
At some point, when my xpi.Current points to the B node (because
xpi.GetAttribute("name") = xyz) I want to get the text inside the <value>
child, so I call xpi.Current.Evaluate("value") which I would have thought
would give me the value, but it returns the xpi itself (in other words,
xpi.Evaluate("value") returns xpi.)
What am I missing??
-mdb