Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: Parsing XML

by Corion (Patriarch)
on Sep 02, 2016 at 17:36 UTC ( [id://1171079]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Parsing XML
in thread Parsing XML

That's the output you get from

warn Dumper $t;

Why do you do that when you don't know what happens there?

Maybe you want to store or print a value when XML::Twig invokes the callback for your node, in the following callback?

'CustDetails' => sub { $_->first_child('CustomerId')->text(), }

Maybe something like the following:

'CustDetails' => sub { print "The first customer has the following det +ails: " . $_->first_child('CustomerId')->text(), }

Log In?
Username:
Password:

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

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

    No recent polls found