Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: XML Parsing

by tmharish (Friar)
on Jan 31, 2013 at 11:21 UTC ( [id://1016293]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $xml_obj = new XML::Smart( $xml ) ;
    my $hash_when_cat_eq_special = ( $xml_obj->{list}{value}( 'category', 
    +'eq', 'special' )->pointer() );
    
  2. or download this
    $hash_when_cat_eq_special will contain:
    {
    ...
                       "instance" => 0,
                     },
    }
    
  3. or download this
    my $xml_obj = new XML::Smart( $xml ) ;
    my $param_contents = $xml_obj->{list}{value}( 'category', 'eq', 'speci
    +al' )->{parameter}->content();
    
  4. or download this
    $param_contents will contain: 
    "nameofparameter1"
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-16 23:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found