Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: XML::LibXML + XML::LibXML::XPathContext: can this be simplified?

by choroba (Archbishop)
on Oct 08, 2019 at 15:14 UTC ( #11107207=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open file.xml ;
    $version := hash ../id /objects/obj/version ;
    ls /objects/obj[ count(refs/id)
                     and count(refs/id[xsh:lookup('version', .) = ../../ve
    +rsion])
                       = count(refs/id) ];
    
  2. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    foreach my $node (@nodes) {
        say $node->toString(1);
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2020-10-25 08:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (249 votes). Check out past polls.

    Notices?