XPath Query

Question posted in Computer Software on 09 2009
Rate question difficulty level 0 Votes
given the following xml sample file:

<xml>
<Customers>
<Customer Type="Regular">John Due</Customer>
<Customer Type="Premium">Jane Due</Customer>
<Customer Type="Regular">Jack Jackson</Customer>
<Customer Type="Regular">Dennis Lue</Customer>
<Customer Type="Premium">Tyson Brickson</Customer>
</Customers>
</xml>

write an XPATH query that will return will the premium customers.
 
 
1 Answer
 
use of XPATH is needed.
example in C#:

myDoc.SelectNodes(//Customers/Customer[@Type = 'Premium'])

09/29/2009
 
 
Add an answer*
 
Email
Location: Glil Yam , Israel
xpath xml
Now hiring!
Intuit 
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------