in reply to XML::Simple - storing/retrieving 2 tables into 1 XML file
It works.use XML::Simple; my $xml = new XML::Simple; my $data = $xml->XMLin("testing.xml"); foreach my $e (@{$data}) { my $p; if ($p=$e->{Phones}) { print "\n$p->{Manufacturer}"; print "\n$p->{Model}"; print "\n$p->{Version}"; print "\n$p->{Count}"; print "\n==========================="; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML::Simple - storing/retrieving 2 tables into 1 XML file
by kubrat (Scribe) on Sep 11, 2008 at 16:56 UTC |