XML::XPath::NodeSet - Online Linux Manual PageSection : 3
Updated : 2022-01-21
Source : perl v5.34.0
Note : User Contributed Perl Documentation

NAMEXML::XPath::NodeSet − a list of XML document nodes

DESCRIPTIONAn XML::XPath::NodeSet object contains an ordered list of nodes. The nodes each take the same format as described in XML::XPath::XMLParser.

SYNOPSIS​ my $results = $xp−>find('//someelement'); ​ if (!$results−>isa('XML::XPath::NodeSet')) { ​ print "Found $results\n"; ​ exit; ​ } ​ foreach my $context ($results−>get_nodelist) { ​ my $newresults = $xp−>find('./other/element', $context); ​ ... ​ }

API

new()You will almost never have to create a new NodeSet object, as it is all done for you by XPath.

get_nodelist()Returns a list of nodes. See XML::XPath::XMLParser for the format of the nodes.

string_value()Returns the string-value of the first node in the list. See the XPath specification for what string-value means.

to_literal()Returns the concatenation of all the string-values of all the nodes in the list.

get_node($pos)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.

push(@nodes)Equivalent to perl's push function.

append($nodeset)Given a nodeset, appends the list of nodes in $nodeset to the end of the current list.

shift()Equivalent to perl's shift function.

unshift(@nodes)Equivalent to perl's unshift function.

prepend($nodeset)Given a nodeset, prepends the list of nodes in $nodeset to the front of the current list.
0
Johanes Gumabo
Data Size   :   8,155 byte
man-XML::XPath::NodeSet.3pmBuild   :   2024-12-29, 07:25   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 259,285
Visitor ID   :     :  
Visitor IP   :   18.191.63.237   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|252|XML::XPath::NodeSet.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|XML::XPath::NodeSet.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|252|XML::XPath::NodeSet.3pm|43|br══─}─══|'br══─}─══ )         (htmlprn|149|XML::XPath::NodeSet.3pm|43|'br══─}─══ |'br══─}─══ )