Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Help with XML Parsing

by GrandFather (Saint)
on Jul 20, 2007 at 22:07 UTC ( [id://627893]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    for my $elt ($root->look_down ('_tag' => 'a', 'attr' => '2')) {
        print $elt->as_XML (), "\n";
    }
    
  2. or download this
    All the 'a' elements
    <a attr="1">Contents of a - 1</a>
    ...
    
    All the 'a' elements with attr='2'
    <a attr="2">Contents of a - 2</a>
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-19 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found