Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Simpler than XML::Simple

by Jenda (Abbot)
on Jul 11, 2008 at 17:34 UTC ( [id://697036]=CUFP: print w/replies, xml ) Need Help??

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);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://697036]
Approved by marto
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2024-04-19 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found