Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

XML::Simple help

by mifflin (Curate)
on Mar 08, 2005 at 00:22 UTC ( #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? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2023-06-04 11:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (21 votes). Check out past polls.

    Notices?