Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 pondering the Monastery: (8)
As of 2015-07-06 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls