Help for this page

Select Code to Download


  1. or download this
    use XML::Simple;
    
    my $ref = XMLin( $xmlfile);
    
  2. or download this
    <root>
     <sub>
    ...
       <b x="4">blah blah</b>
     </sub>
    </root>
    
  3. or download this
    use XML::Rules;
    
    ...
        rules => XML::Rules::inferRulesFromExample( $XML),
    );
    my $ref = $parser->parse( $XML);
    
  4. or download this
    my $XML = <<'*END*';
    <root>
    ...
    my $ref = XMLin( $XML);
    print Dumper($ref);
    __END__
    
  5. or download this
    my $XML = <<'*END*';
    <root>
    ...
    );
    my $ref = $parser->parse( $XML);
    print Dumper($ref);