Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: XPath search qn

by dakkar (Hermit)
on May 05, 2004 at 12:08 UTC ( [id://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)

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://350745]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-19 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found