Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

XML::LibXML::XPathContext findnodes() Question

by AbrahamB (Initiate)
on Dec 19, 2008 at 16:25 UTC ( [id://731578]=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"?>
    <root>
      <element1>Element1 content</element1>
      <element2>Element2 content</element2>
    </root>
    
  2. or download this
    my $xpath = ‘/root’;
    my $test = $doc->findnodes($xpath);
    ...
    $VAR1 = bless( [
                     bless( do{\(my $o = 13079328)}, 'XML::LibXML::Element
    +' )
                   ], 'XML::LibXML::NodeList' );
    
  3. or download this
    my $xpath = ’/root and /root/element1’;
    my $test = $doc->findnodes($xpath);
    print Dumper($test);
    
    $VAR1 = bless( [], 'XML::LibXML::NodeList' );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 14:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found