ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



XPath::Node(3)                       User Contributed Perl Documentation                      XPath::Node(3)



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:

          XML::XPath::Node::Element

          XML::XPath::Node::Attribute

          XML::XPath::Node::Namespace

          XML::XPath::Node::Text

          XML::XPath::Node::Comment

          XML::XPath::Node::PI



perl v5.8.8                                      2003-01-26                                   XPath::Node(3)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.