Class NodeList

XML DOM NodeList class.

Implemented as a standard Lua array, which is 1-indexed. Note: the item method returns based on 1-indexed! Ensure NOT to create holes.

See the NodeList interface.

Tables

NodeList.properties Properties of the NodeList class

Methods

NodeList:item (idx) Returns item by index, implements item.


Tables

NodeList.properties
Properties of the NodeList class

Fields:

  • length the number of items in the NodeList (readonly)

Methods

NodeList:item (idx)
Returns item by index, implements item. Indices 1-indexed.

Parameters:

  • idx int index of item to return

Returns:

    the item, nil if not found

Usage:

    -- this direct Lua access:
    local itm = NodeList[1]
    -- would be the faster version of:
    local itm = NodeList:item(1)
generated by LDoc 1.4.6 Last updated 2022-04-22 13:38:32