Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Search in the value of an XML field Search in the value of an XML fieldTo: NULL Date: 5/1/2006 3:02:00 AM Hi, Is there any way to use xpath to find a node that contains some string in ita value? Somehow like searching for the value of an attribute, but instead look in the node's text To be more specific if I have this xml <customer> <name part="first">John</name> <name part="last">Doe</name> </customer> I can search with the following xpath expression to get the first name //customer/name[@part="first"] But if I have this xml <customer> <name>first: John</name> <name>last: Doe</name> </customer> How can I find node with first name? I don't want to get the whole collection of name nodes from customer, scan all and check if text includes "first" Is there any way to get this directly with xpath? Thank you Regards, Bogdan Zamfir | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
