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' );