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

Re: Parsing XML file for more than 1 child element with attributes

by Cody Pendant (Prior)
on Feb 06, 2008 at 11:21 UTC ( [id://666522]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach $node ( keys( %{ $tree->{report}->{node} } ) ) {
      print "$node:values: $tree->{report}->{node}->{$node}->{values}\n";
    }
    
  2. or download this
    my $simple = XML::Simple -> new (KeyAttr => 'node');
    
  3. or download this
    $tree = {
      'report' => {
    ...
      }
    };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://666522]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-23 20:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found