in reply to Need an hash of the Parsed Document !
Not sure if this is what you want
poj#!perl use strict; use XML::Twig; my $twig = XML::Twig->new (); my $hr = $twig->parse(\*DATA)->simplify; for (@{$hr->{'Account'}}){ print $_->{'Id'}."\n"; print $_->{'OwnerLastName'}."\n"; print $_->{'OwnerFirstName'}."\n\n"; } __DATA__ <?xml version="1.0" encoding="utf-8"?> . . .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need an hash of the Parsed Document !
by Anonymous Monk on Dec 17, 2015 at 17:10 UTC | |
by poj (Abbot) on Dec 17, 2015 at 17:18 UTC |