XML::XPathEngine::NodeSet man page on OpenServer

Man page or keyword search:  
man Server   5388 pages
apropos Keyword Search (all sections)
Output format
OpenServer logo
[printable version]

XML::XPathEngine::NodeUser3Contributed Perl DocumeXML::XPathEngine::NodeSet(3)

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

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

SYNOPSIS
	       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);
		       ...
	       }

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::XPathEngine::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.

perl v5.8.8			  2006-12-21	  XML::XPathEngine::NodeSet(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server OpenServer

List of man pages available for OpenServer

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net