Help for this page

Select Code to Download


  1. or download this
    <a>
        <b type="1"/>
        <b type="2"/>
        <c/>
        <b type="3"/>
    </a>
    
  2. or download this
    use warnings;
    use strict;
    use XML::Simple qw(:strict);
    ...
    
    my $info = $xmlParser->XMLin('<a><b type="1"/><b type="2"/><c/><b type
    +="3"/></a>') || die "Problem: $!\n";
    print Dumper($info);