- or download this
<shelf>
<product>
...
<color>orange</color>
</product>
</shelf>
- or download this
use XML::Simple;
$file = XMLin('./prod.xml');
...
print " Cost: " . $products->{cost} . "\n";
print "Colors: " . $products->{color} . "\n\n";
}
- or download this
Widget: widget1
Rating: B
Cost: 0.10
...
Rating: S
Cost: 0.25
Colors: ARRAY(0x19c55f0)