![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: XPath Query [Thread Next] Re: XPath QueryTo: NULL Date: 8/13/2008 1:30:00 PM Fantastic ! Thanks you much. Jj "Martin Honnen" <mahotrash@y...> wrote in message news:eAFxfcW$IHA.3396@T...... > 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 | |||
|
