Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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
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
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 browsing the Monastery: (15)
As of 2015-07-31 22:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (282 votes), past polls