QDomNodeList¶
- PyQt5.QtXml.QDomNodeList
Description¶
The QDomNodeList class is a list of QDomNode objects.
Lists can be obtained by elementsByTagName() and childNodes(). The Document Object Model (DOM) requires these lists to be “live”: whenever you change the underlying document, the contents of the list will get updated.
You can get a particular node from the list with item(). The number of items in the list is returned by length().
For further information about the Document Object Model see Level 1 and Level 2 Core. For a more general introduction of the DOM implementation see the QDomDocument documentation.
See also
Methods¶
- __init__()
Creates an empty node list.
- __init__(QDomNodeList)
Constructs a copy of n.
- at(int) → QDomNode
TODO
- count() → int
TODO
- __eq__(QDomNodeList) → bool
TODO
- isEmpty() → bool
TODO
- item(int) → QDomNode
Returns the node at position index.
If index is negative or if index >= length() then a null node is returned (i.e. a node for which isNull() returns true).
See also
- __len__() → int
TODO
- length() → int
Returns the number of nodes in the list.
- __ne__(QDomNodeList) → bool
TODO
- size() → int
TODO