Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Extracting info from XML file [Thread Next] Re: Extracting info from XML fileTo: NULL Date: 7/5/2007 9:01:00 AM "Manney" <nospam@t...> wrote in message news:4680c21e$0$31682$db0fefd9@n...... > Martin, is there a similar way of directly selecting the text value of a > nodes attribute by tag name? Given this XML: <?xml version="1.0"?><employees><employee emp_no="2"><emp_lastname>Nelson</emp_lastname><emp_firstname>Roberto</emp_firstname><emp_phoneext>250</emp_phoneext><emp_salary currency="UKP">40000</emp_salary></employee>...</employees> To extract the employee nodes where the employee currency attribute is equal to UKP, you could use this XPath with the SelectNodes method: /employees/employee[emp_salary[@currency='UKP']] HTH Rgs --Craig | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
