Subject:xpath question Author:(Deleted User) Date:13 Feb 2006 04:10 PM
Hi, David. I'm not sure if I completely understand your question, so here are two possible interpretations, with two answers:
If you're looking for whatever value is contained in the <case> subelement, then a simple //case XPath statement will return that value.
If, however, you're looking only for those instances where <case> is 5, then you want to use this: //SQLBatchResult[case=5]
By the way, the XML snippet you provided wasn't well-formed, so I took the liberty of making sure it was (this made it possible to test different XPath statements):