Xpath

ma701ss

Member
Joined
Dec 2, 2012
Messages
9
Programming Experience
1-3
Hi,

Need help using Xpath to firstly look at every CATEGORY node using the "id" attribute passed over to the webpage in a querystring, and then once found to assign the "name" attribute to a variable. Getting in a muddle trying to use MoveToFirstAttribute(), not working.

VB.NET:
<?xml version="1.0" ?>
<STOREITEMS>
<CATEGORY id='123' name='Products'>
<PRODUCT ITEM='456'>
</PRODUCT>
</CATEGORY>
<CATEGORY id='321' name='More Products'>
<PRODUCT ITEM='789'>
</PRODUCT>
</CATEGORY>
</STOREITEMS>

Thanks
 
Back
Top