Jjayant has asked for the wisdom of the Perl Monks concerning the following question:
Can someone help me out in this.use XML::Simple; use Data::Dumper; $xml = new XML::Simple (KeyAttr => [],suppressempty => 1,ForceArray => + ['pointTmc']); $data = $xml->XMLin("try.xml"); #print Dumper($data); for my $pointTmc ( @{$data->{linears}->{linear}->{pointTmc}}) { print "$pointTmc->{dataTypes}->{dataType}->{speedSources}->{sp +eedSource}->{speed} \n"; # print "$pointTmc->{dataTypes}->{dataType}->{speedSources}->{sp +eedSource}->{timestamp} \n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get the XML nodes.
by choroba (Cardinal) on Jul 24, 2013 at 13:01 UTC | |
|
Re: Get the XML nodes.
by poj (Abbot) on Jul 24, 2013 at 12:29 UTC | |
|
Re: Get the XML nodes.
by daxim (Curate) on Jul 24, 2013 at 11:35 UTC | |
by Jjayant (Initiate) on Jul 24, 2013 at 11:50 UTC | |
by Jenda (Abbot) on Jul 24, 2013 at 15:15 UTC | |
|
Re: Get the XML nodes.
by Anonymous Monk on Jul 24, 2013 at 11:57 UTC |