Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - xpath query node wildcard >Thread Next - Re: xpath query node wildcard Re: xpath query node wildcardTo: NULL Date: 10/5/2005 9:08:00 PM vijayx@g... wrote: > <MyDataSet> > <NorthwindEmployees> > <Employee> > <employeeid>...</employeeid> > <lastname>...</lastname> > <firstname>...</firstname> > <title>...</title> > </Employee> > ··· > </NorthwindEmployees> > </MyDataSet> > > > How can i form a query that will match node names of either > lastname or firstname? You need to select all element nodes and then add a predicate that checks the name of the element e.g. /MyDataSet/NorthwindEmployees/Employee/*[contains(local-name(.), 'name')] -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
