in reply to Re: XML::Simple doesn't work
in thread XML::Simple doesn't work
#! /usr/bin/perl use XML::Simple ; my $xs1 = XML::Simple->new(); my $doc = $xs1->XMLin("test.xml"); foreach my $key (keys (%{$doc->{breakfast_menu}})){ print "$key --> $doc->{breakfast_menu}->{$key}->{name}\n" ; }
I thought XML::Simple was simple :(<breakfast_menu> <food> <name>Belgian Waffles</name> <price>$5.95</price> <description> two of our famous Belgian Waffles with plenty of real maple syru +p </description> <calories>650</calories> </food> ..... </breakfast_menu>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: XML::Simple doesn't work
by grantm (Parson) on Nov 28, 2005 at 23:34 UTC |