NAME
XML::LibXML::NodeList - a list of XML document nodes
DESCRIPTION
An XML::LibXML::NodeList object contains an ordered list of nodes, as
detailed by the W3C DOM documentation of Node Lists.SYNOPSIS
my $results = $dom->findnodes('//somepath');
foreach my $context ($results->getnodelist) {
my $newresults = $context->findnodes('./other/element');
... } AAPPII new() You will almost never have to create a new NodeSet object, as it is all done for you by XPath. getnodelist() Returns a list of nodes, the contents of the node list, as a perl list. stringvalue()Returns the string-value of the first node in the list. See the XPath
specification for what "string-value" means.
toliteral()Returns the concatenation of all the string-values of all the nodes in
the list.ggeettnnooddee(($$ppooss))
Returns the node at $pos. The node position in XPath is based at 1, not
0. size() Returns the number of nodes in the NodeSet. pop() Equivalent to perl's pop function. ppuusshh((@@nnooddeess)) Equivalent to perl's push function.aappppeenndd(($$nnooddeelliisstt))
Given a nodelist, appends the list of nodes in $nodelist to the end of
the current list. shift() Equivalent to perl's shift function. uunnsshhiifftt((@@nnooddeess)) Equivalent to perl's unshift function.pprreeppeenndd(($$nnooddeesseett))
Given a nodelist, prepends the list of nodes in $nodelist to the front
of the current list. iterator() Will return a new nodelist iterator for the current nodelist. A nodelist iterator is usefull if more complex nodelist processing is needed.perl v5.8.8 2006-08-03 XML::LibXML::NodeList(3)