in reply to XML::Simple - storing/retrieving 2 tables into 1 XML file
#!/usr/bin/perl -w use strict; use XML::Simple; my $xml = new XML::Simple; my $data = $xml->XMLin("testing.xml"); for (my $i=0;$i<$#{$data};$i++) { if($data->[$i]->{Phones}) { print "\n$data->[$i]->{Phones}->{Manufacturer}"; print "\n$data->[$i]->{Phones}->{Model}"; print "\n$data->[$i]->{Phones}->{Version}"; print "\n$data->[$i]->{Phones}->{Count}"; print "\n==========================="; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML::Simple - storing/retrieving 2 tables into 1 XML file
by GrandFather (Saint) on Sep 11, 2008 at 10:27 UTC | |
|
Re^2: XML::Simple - storing/retrieving 2 tables into 1 XML file
by iphony (Acolyte) on Sep 12, 2008 at 05:33 UTC |