Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

XML::XPath::Node

Name XML::XPath::Node
Version 1.42
Located at /usr/share/perl5/vendor_perl
File /usr/share/perl5/vendor_perl/XML/XPath/Node.pm
Is Core No
Search CPAN for this module XML::XPath::Node
Documentation XML::XPath::Node
Module Details XML::XPath::Node

NAME

XML::XPath::Node - internal representation of a node


API

The Node API aims to emulate DOM to some extent, however the API isn't quite compatible with DOM. This is to ease transition from XML::DOM programming to XML::XPath. Compatibility with DOM may arise once XML::DOM gets namespace support.

new

Creates a new node. See the sub-classes for parameters to pass to new().

getNodeType

Returns one of ELEMENT_NODE, TEXT_NODE, COMMENT_NODE, ATTRIBUTE_NODE, PROCESSING_INSTRUCTION_NODE or NAMESPACE_NODE. UNKNOWN_NODE is returned if the sub-class doesn't implement getNodeType - but that means something is broken! The constants are exported by default from XML::XPath::Node. The constants have the same numeric value as the XML::DOM versions.

getParentNode

Returns the parent of this node, or undef if this is the root node. Note that the root node is the root node in terms of XPath - not the root element node.

to_sax ( $handler | %handlers )

Generates sax calls to the handler or handlers. See the PerlSAX docs for details (not yet implemented correctly).


MORE INFO

See the sub-classes for the meaning of the rest of the API:

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024