1XML::DOM::NodeList(3) User Contributed Perl DocumentationXML::DOM::NodeList(3)
2
3
4
6 XML::DOM::NodeList - A node list as used by XML::DOM
7
9 The NodeList interface provides the abstraction of an ordered collec‐
10 tion of nodes, without defining or constraining how this collection is
11 implemented.
12
13 The items in the NodeList are accessible via an integral index, start‐
14 ing from 0.
15
16 Although the DOM spec states that all NodeLists are "live" in that they
17 allways reflect changes to the DOM tree, the NodeList returned by
18 getElementsByTagName is not live in this implementation. See CAVEATS
19 for details.
20
21 METHODS
22
23 item (index)
24 Returns the indexth item in the collection. If index is greater
25 than or equal to the number of nodes in the list, this returns
26 undef.
27
28 getLength
29 The number of nodes in the list. The range of valid child node
30 indices is 0 to length-1 inclusive.
31
32 Additional methods not in the DOM Spec
33
34 dispose
35 Removes all circular references in this NodeList and its descen‐
36 dants so the objects can be claimed for garbage collection. The
37 objects should not be used afterwards.
38
39
40
41perl v5.8.8 2002-02-08 XML::DOM::NodeList(3)