Element1 content Element2 content #### my $xpath = ‘/root’; my $test = $doc->findnodes($xpath); print Dumper($test); $VAR1 = bless( [ bless( do{\(my $o = 13079328)}, 'XML::LibXML::Element' ) ], 'XML::LibXML::NodeList' ); #### my $xpath = ’/root and /root/element1’; my $test = $doc->findnodes($xpath); print Dumper($test); $VAR1 = bless( [], 'XML::LibXML::NodeList' );