QDomNodeList¶
The
QDomNodeList
class is a list ofQDomNode
objects. More…

Synopsis¶
Detailed Description¶
Lists can be obtained by
elementsByTagName()
andchildNodes()
. 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 bylength()
.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
QDomNodeList
¶ QDomNodeList(arg__1)
- param arg__1
Creates an empty node list.
Constructs a copy of
n
.
-
PySide2.QtXml.QDomNodeList.
at
(index)¶ - Parameters
index –
int
- Return type
This function is provided for Qt API consistency. It is equivalent to
item()
.If
index
is negative or ifindex
>=length()
then a null node is returned (i.e. a node for whichisNull()
returns true).
-
PySide2.QtXml.QDomNodeList.
count
()¶ - Return type
int
This function is provided for Qt API consistency. It is equivalent to
length()
.
-
PySide2.QtXml.QDomNodeList.
isEmpty
()¶ - Return type
bool
Returns
true
if the list contains no items; otherwise returnsfalse
. This function is provided for Qt API consistency.
-
PySide2.QtXml.QDomNodeList.
item
(index)¶ - Parameters
index –
int
- Return type
Returns the node at position
index
.If
index
is negative or ifindex
>=length()
then a null node is returned (i.e. a node for whichisNull()
returns true).See also
-
PySide2.QtXml.QDomNodeList.
length
()¶ - Return type
int
Returns the number of nodes in the list.
-
PySide2.QtXml.QDomNodeList.
__ne__
(arg__1)¶ - Parameters
arg__1 –
QDomNodeList
- Return type
bool
Returns
true
the node listn
and this node list are not equal; otherwise returnsfalse
.
-
PySide2.QtXml.QDomNodeList.
__eq__
(arg__1)¶ - Parameters
arg__1 –
QDomNodeList
- Return type
bool
Returns
true
if the node listn
and this node list are equal; otherwise returnsfalse
.