in reply to Re^5: Perl XML parsing with XML::Simple - Having problem with accessing fields
in thread Perl XML parsing with XML::Simple - Having problem with accessing fields
And this is my perl script: My goal is to get to - 2000-10-19<DATA> <DATA1> <TIME>2012-08-04T20:15:04.506-04:00<TIME> <DATA2> <DATE-NOW>2000-10-19</DATE-NOW> <ID>A95</ID> <STATUS>A</STATUS> <TIME/> </DATA2> </DATA1> </DATA>
Please let me know what I can change in my code to make it work.use strict; use warnings; use XML::Simple; # qw(:strict); use Data::Dumper; my $simple = XML::Simple->new(); my $config = $simple->XMLin('parse3.xml'); print Dumper($config) # this prints out parsed xml print $config->{DATA1}->{DATA2}->{DATE-NOW}, ".\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Perl XML parsing with XML::Simple - Having problem with accessing fields
by Mr. Muskrat (Canon) on Aug 17, 2012 at 20:01 UTC | |
by vparikh (Novice) on Aug 20, 2012 at 13:15 UTC |