- or download this
my $tmp = $parse->parse($address);
- or download this
use strict;
use warnings;
...
my $parse = new XML::Parser(Style => 'Objects');
my $address = "<LOC><HNO></HNO><STN>Eagle Way</STN><MCN>Gotham City</M
+CN></LOC>";
print Dumper $parse->parse($address);
- or download this
C:\tmp>test.pl
$VAR1 = [
...
]
}, 'main::LOC' )
];
- or download this
use strict;
use warnings;
...
my $address = "<LOC><HNO></HNO><STN>Eagle Way</STN><MCN>Gotham City</M
+CN></LOC>";
my $ref = XMLin($address);
print Dumper $ref;
- or download this
C:\tmp>test.pl
$VAR1 = {
...
'HNO' => {},
'STN' => 'Eagle Way'
};