XML::LibXML::NodeList - a list of XML document nodes
An XML::LibXML::NodeList object contains an ordered list of nodes, as detailed by the W3C DOM documentation of Node Lists.
my $results = $dom->findnodes('//somepath'); foreach my $context ($results->get_nodelist) { my $newresults = $context->findnodes('./other/element'); ... }
You will almost never have to create a new NodeSet object, as it is all done for you by XPath.
Returns a list of nodes, the contents of the node list, as a perl list.
Returns the string-value of the first node in the list. See the XPath specification for what "string-value" means.
Returns the concatenation of all the string-values of all the nodes in the list.
Returns the node at $pos. The node position in XPath is based at 1, not 0.
Returns the number of nodes in the NodeSet.
Equivalent to perl's pop function.
Equivalent to perl's push function.
Given a nodelist, appends the list of nodes in $nodelist to the end of the current list.
Equivalent to perl's shift function.
Equivalent to perl's unshift function.
Given a nodelist, prepends the list of nodes in $nodelist to the front of the current list.