Help for this page

Select Code to Download


  1. or download this
    use XML::Simple;
    my $x = XMLin('myxmlfile.xml');
    print "This costs: " . $x->{item}->{cost} ."\n";
    
  2. or download this
    <?xml version='1.0' encoding='iso-8859-1'?>
    <catalogue>
    ...
        <cost>£300</cost>
      </item>
    </catalogue>