Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Simpler than XML::Simple

by Jenda (Abbot)
on Jul 11, 2008 at 17:34 UTC ( #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
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? | Other CB clients
Other Users?
Others contemplating the Monastery: (16)
As of 2015-07-07 18:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls