Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

XML::Simple help

by mifflin (Curate)
on Mar 08, 2005 at 00:22 UTC ( [id://437365]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <?xml version="1.0" encoding="UTF-8" ?>
    <charge-type-control>
    ...
       <charge code="SV4" name="savamt"/>
       <charge code="SV5" name="savamt"/>
    </charge-type-control>
    
  2. or download this
    {
       'SV1' => 'savamt',
    ...
       'SV3' => 'savamt',
       'SV4' => 'savamt'
    };
    
  3. or download this
    {
        'charge' => {
    ...
                           }
                  }
    };
    
  4. or download this
    $ref = XMLin('charge-type-control.xml', KeyAttr => ['code']);
    
  5. or download this
    $ref = XMLin('charge-type-control.xml', KeyAttr => ['code'], ValueAttr
    + => ['name']);
    
  6. or download this
    my %myref;
    for my $key (keys %{$ref->{charge}}) {
       $myref{$key} = $ref->{charge}->{$key}->{name};
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-23 17:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found