QDomNodeList¶
The QDomNodeList
class is a list of QDomNode
objects. More…

Synopsis¶
Functions¶
Detailed Description¶
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
-
class
PySide6.QtXml.
QDomNodeList
¶ PySide6.QtXml.QDomNodeList(arg__1)
- Parameters
arg__1 –
PySide6.QtXml.QDomNodeList
Creates an empty node list.
-
PySide6.QtXml.QDomNodeList.
at
(index)¶ - Parameters
index – int
- Return type
-
PySide6.QtXml.QDomNodeList.
count
()¶ - Return type
int
-
PySide6.QtXml.QDomNodeList.
isEmpty
()¶ - Return type
bool
-
PySide6.QtXml.QDomNodeList.
item
(index)¶ - Parameters
index – int
- Return type
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
-
PySide6.QtXml.QDomNodeList.
length
()¶ - Return type
int
Returns the number of nodes in the list.
-
PySide6.QtXml.QDomNodeList.
__ne__
(arg__1)¶ - Parameters
arg__1 –
PySide6.QtXml.QDomNodeList
- Return type
bool
Returns true
the node list n
and this node list are not equal; otherwise returns false
.
-
PySide6.QtXml.QDomNodeList.
__eq__
(arg__1)¶ - Parameters
arg__1 –
PySide6.QtXml.QDomNodeList
- Return type
bool
Returns true
if the node list n
and this node list are equal; otherwise returns false
.
-
PySide6.QtXml.QDomNodeList.
size
()¶ - Return type
int
© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.