GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
XML::XPathEngine::NodeSet(3) User Contributed Perl Documentation XML::XPathEngine::NodeSet(3)

XML::XPathEngine::NodeSet - a list of XML document nodes

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

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

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. See XML::XPathEngine::XMLParser for the format of the nodes.

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

Returns a list of the string-values of all the nodes in the list.

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 nodeset, appends the list of nodes in $nodeset to the end of the current list.

Equivalent to perl's shift function.

Equivalent to perl's unshift function.

Given a nodeset, prepends the list of nodes in $nodeset to the front of the current list.
2010-09-15 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.