1XPath::Node(3)        User Contributed Perl Documentation       XPath::Node(3)
2
3
4

NAME

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

API

9       The Node API aims to emulate DOM to some extent, however the API isn't
10       quite compatible with DOM. This is to ease transition from XML::DOM
11       programming to XML::XPath. Compatibility with DOM may arise once
12       XML::DOM gets namespace support.
13
14       new
15
16       Creates a new node. See the sub-classes for parameters to pass to
17       new().
18
19       getNodeType
20
21       Returns one of ELEMENT_NODE, TEXT_NODE, COMMENT_NODE, ATTRIBUTE_NODE,
22       PROCESSING_INSTRUCTION_NODE or NAMESPACE_NODE. UNKNOWN_NODE is returned
23       if the sub-class doesn't implement getNodeType - but that means some‐
24       thing is broken! The constants are exported by default from
25       XML::XPath::Node. The constants have the same numeric value as the
26       XML::DOM versions.
27
28       getParentNode
29
30       Returns the parent of this node, or undef if this is the root node.
31       Note that the root node is the root node in terms of XPath - not the
32       root element node.
33
34       to_sax ( $handler ⎪ %handlers )
35
36       Generates sax calls to the handler or handlers. See the PerlSAX docs
37       for details (not yet implemented correctly).
38

MORE INFO

40       See the sub-classes for the meaning of the rest of the API:
41
42       ·   XML::XPath::Node::Element
43
44       ·   XML::XPath::Node::Attribute
45
46       ·   XML::XPath::Node::Namespace
47
48       ·   XML::XPath::Node::Text
49
50       ·   XML::XPath::Node::Comment
51
52       ·   XML::XPath::Node::PI
53
54
55
56perl v5.8.8                       2001-06-12                    XPath::Node(3)
Impressum