Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - XPath Query >Thread Next - Re: XPath Query Re: XPath QueryTo: NULL Date: 8/13/2008 7:08:00 PM Jimmy Jam wrote: > For example, from the demonstration XML below, I want to return all nodes > like "account.*" > Is this possible using an XPath expression, and if so, what would the query > look like ? > > <root> > <body> > <account.0001></account.0001> > <account.0002></account.0002> > .... > > </body> > </root> /root/body/*[starts-with(name(), 'account.')] selects all child elements of the 'body' child element(s) of the 'root' element where the name starts with 'account.'. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
