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(), }
|
|---|