Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: XML Parsing

by remiah (Hermit)
on Sep 22, 2012 at 01:32 UTC ( #995019=note: print w/replies, xml ) Need Help??


in reply to Re: XML Parsing
in thread XML Parsing

With Twig.

my $twig=XML::Twig->new( twig_handlers =>{ #'//*[total="609" and passed="609"]' =>sub { # i wonder why th +is doesn't work..? '//*[@total="609"]' =>sub { my ($twig,$elt)=@_; last if ( $elt->att("passed") ne "609"); last if ( $elt->att("skipped") ne "0"); last if ( $elt->att("blocked") ne "0"); if ($elt->parent->gi eq 'workflow' ){ $elt->parent->print; } } }, PrettyPrint=>'indented', )->parsefile('xml_without_error.xml');

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995019]
help
Chatterbox?
[Corion]: 1nickt: Oh - indeed! HTTP::Tiny is somewhat closer to WWW::Mechanize than I thought, thank you!
[Corion]: Discipulus: Yes, but it seems to have handling in place to tell a cookie jar to extract cookies from responses and add them to other requests, which is what's needed
Discipulus must give a try to this module anyway..
[Discipulus]: so, combined with HTTP::CookieJar ?

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2017-05-23 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?