Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: XPath search qn

by dakkar (Hermit)
on May 05, 2004 at 12:08 UTC ( #350745=note: print w/ replies, xml ) Need Help??


in reply to XPath search qn

//file[userprop[nameprop='Version']/valueprop=2]
Which means:
  • take every file element
  • whose userprop child (whose nameprop child has a content of 'Version') has a valueprop child with a content of 2
Or, put more clearly, you can nest node-tests (the things inside the brackets)
-- 
        dakkar - Mobilis in mobile

Most of my code is tested...

Perl is strongly typed, it just has very few types (Dan)


Comment on Re: XPath search qn
Download Code
Re: Re: XPath search qn
by pizza_milkshake (Monk) on May 05, 2004 at 14:16 UTC
    ah, i'd been looking for the ability to perform more than one test at the same level and not finding it. i will update my code. thanks!

    perl -e"\$_=qq/nwdd\x7F^n\x7Flm{{llql0}qs\x14/;s/./chr(ord$&^30)/ge;print"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://350745]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2014-08-29 22:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (289 votes), past polls