Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by choroba (Archbishop)
on Oct 08, 2019 at 11: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 pondering the Monastery: (4)
As of 2020-01-19 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?