XML::DOM::NodeList(3)
XML::DOM::NodeList π
okay bestie, this is the manual page for XML::DOM::NodeList(3) β the whole vibe is βa node list as used by XML::DOM.β pull up a chair, weβre getting into it β¨
β¨ NAME β¨
XML::DOM::NodeList β A node list as used by XML::DOM.
π DESCRIPTION π
The NodeList interface gives you the abstraction of an ordered collection of nodes, and it does not define or constrain how that collection is actually implemented. no cap, itβs just the interface vibe π«
The items in the NodeList are accessible via an integral index, starting from 0. zero-based indexing girlies rise π«Ά
Although the DOM spec states that all NodeLists are βliveβ in that they allways reflect changes to the DOM tree, the NodeList returned by getElementsByTagName is not live in this implementation. See CAVEATS for details. yes, this is the plot twist π
πΈ METHODS πΈ
item (index)β Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returnsundef. so if you ask for too much, you get nothing β literally πgetLengthβ The number of nodes in the list. The range of valid child node indices is0tolength-1inclusive. math girlies we love to see it π₯
π Additional methods not in the DOM Spec π
disposeβ Removes all circular references in thisNodeListand its descendants so the objects can be claimed for garbage collection. The objects should not be used afterwards. like, afterdispose, leave them alone fr fr π
π cute little sign-off π
this iconic little page is XML::DOM::NodeList(3), from perl v5.42.0, dated 2022-05-23. periodt π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-XML-DOM 1.46-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms