in reply to Re^3: Parsing XML
in thread Parsing XML
my $val; my $t= XML::Twig->new( twig_handlers => { 'CustDetails' => sub { $val = $_->first_child('Custome +rId')->text(), } } ) ->parse($test_xml); print $val;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Parsing XML
by AnomalousMonk (Archbishop) on Sep 02, 2016 at 18:30 UTC |