QDomCharacterData¶
The
QDomCharacterDataclass represents a generic string in the DOM. More…

Inherited by: QDomCDATASection, QDomComment, QDomText
Synopsis¶
Functions¶
def
appendData(arg)def
data()def
deleteData(offset, count)def
insertData(offset, arg)def
length()def
replaceData(offset, count, arg)def
setData(arg__1)def
substringData(offset, count)
Detailed Description¶
Character data as used in XML specifies a generic data string. More specialized versions of this class are
QDomText,QDomCommentandQDomCDATASection.The data string is set with
setData()and retrieved withdata(). You can retrieve a portion of the data string usingsubstringData(). Extra data can be appended withappendData(), or inserted withinsertData(). Portions of the data string can be deleted withdeleteData()or replaced withreplaceData(). The length of the data string is returned bylength().The node type of the node containing this character data is returned by
nodeType().See also
- class PySide2.QtXml.QDomCharacterData¶
PySide2.QtXml.QDomCharacterData(x)
- param x:
Constructs an empty character data object.
- PySide2.QtXml.QDomCharacterData.appendData(arg)¶
- Parameters:
arg – str
Appends the string
argto the stored string.
- PySide2.QtXml.QDomCharacterData.data()¶
- Return type:
str
Returns the string stored in this object.
If the node is a
null node, it will return an empty string.See also
- PySide2.QtXml.QDomCharacterData.deleteData(offset, count)¶
- Parameters:
offset – int
count – int
Deletes a substring of length
countfrom positionoffset.
- PySide2.QtXml.QDomCharacterData.insertData(offset, arg)¶
- Parameters:
offset – int
arg – str
Inserts the string
arginto the stored string at positionoffset.
- PySide2.QtXml.QDomCharacterData.length()¶
- Return type:
int
Returns the length of the stored string.
- PySide2.QtXml.QDomCharacterData.replaceData(offset, count, arg)¶
- Parameters:
offset – int
count – int
arg – str
Replaces the substring of length
countstarting at positionoffsetwith the stringarg.
- PySide2.QtXml.QDomCharacterData.setData(arg__1)¶
- Parameters:
arg__1 – str
Sets this object’s string to
v.See also
- PySide2.QtXml.QDomCharacterData.substringData(offset, count)¶
- Parameters:
offset – int
count – int
- Return type:
str
Returns the substring of length
countfrom positionoffset.
© 2022 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.