Hey all, I've attempted to simplify my question (or at least the XML
that is part of my example in my question):
I have the following XML:
<A>
<B><C><D>
I want to query the data in this node for the element B
</D></C><E>
I also want to query the data in this node for the element B
</E>
</B>
<B><!--Additional data for another B element-->
</B>
</A>
My idea is to do something like this:
---------------------------------------------------
Dim nav As XPathNavigator = doc.CreateNavigator()
Dim iterator As XPathNodeIterator
iterator = nav.Select("/A/B/C[D = '" + someVariable + "'] and /A/B[E =
'" + secondVar + "']")
---------------------------------------------------
Initially, both D and E fell under the same node or tag - so I just
used the code below:
iterator = nav.Select("/A/B/C[D = '" + someVariable + "' and E = '" +
anotherVar + "']")
But now they are at different levels in the node hierarchy (as in the
above example).
Thanks for any suggestions,
Novice