![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: a little xpath problem(and expressoins!?) >Thread Next - Re: a little xpath problem(and expressoins!?) Re: a little xpath problem(and expressoins!?)To: NULL Date: 8/3/2007 6:58:00 PM giddy wrote: >> /bills/bill[@date = '3/Aug/07' and personBill[@personName = 'Rebecca']] > Is there a manual or something for XPath , i looked at the one at w3c.org > but its to heavy. Anything simpler? (w3schools.com did'nt have anything > either on this!) Inside of the square brackets [] is a predicate. While @date = '3/Aug/07' is probably easy to understand as a condition you can also use expressions that evaluate to a node-set. In that case the expression is converted to a boolean and any non-empty node-set evaluates to true while an empty node-set evaluates to false. So /bills/bill[and personBill[@personName = 'Rebecca']] selects those bill elements that have (at least one) child element personBill for which the condition @personName = 'Rebecca' holds. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
