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 ( #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
Node Status?
node history
Node Type: note [id://1016293]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2014-09-17 16:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (91 votes), past polls