in reply to Re: Problem in reading parsed xml using XML::Simple
in thread Problem in reading parsed xml using XML::Simple
@NetWallah: I am using this for dumping the xml
Here print Dumper($xst); shows all the data from xml converted into the format I provided. And I am able to fetch data using reference to these like: $xst->{cmts}->{Pre_EQ}->{groupDelayMag}->{content}; I think the problem I am having is about the elements that are in [] (array of hash?) displayed in $xstmy $xs = XML::Simple->new(); $xst = eval { $xs->XMLin($xml,KeyAttr=>1) }; &printXMLErr($@) if($@); print "Value of \$xst is:\n"; print Dumper($xst);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Problem in reading parsed xml using XML::Simple
by choroba (Cardinal) on Jun 24, 2015 at 15:20 UTC | |
by Perl300 (Friar) on Jun 24, 2015 at 16:00 UTC | |
by choroba (Cardinal) on Jun 24, 2015 at 16:16 UTC | |
by tangent (Parson) on Jun 24, 2015 at 16:17 UTC | |
by Perl300 (Friar) on Jun 24, 2015 at 17:57 UTC | |
by tangent (Parson) on Jun 24, 2015 at 18:52 UTC | |
|