QDomCharacterData露

The QDomCharacterData class represents a generic string in the DOM. More鈥�

Inheritance diagram of PySide2.QtXml.QDomCharacterData

Inherited by: QDomCDATASection, QDomComment, QDomText

Synopsis露

Functions露

Detailed Description露

Character data as used in XML specifies a generic data string. More specialized versions of this class are QDomText , QDomComment and QDomCDATASection .

The data string is set with setData() and retrieved with data() . You can retrieve a portion of the data string using substringData() . Extra data can be appended with appendData() , or inserted with insertData() . Portions of the data string can be deleted with deleteData() or replaced with replaceData() . The length of the data string is returned by length() .

The node type of the node containing this character data is returned by nodeType() .

class PySide2.QtXml.QDomCharacterData露

PySide2.QtXml.QDomCharacterData(x)

param x:

PySide2.QtXml.QDomCharacterData

Constructs an empty character data object.

PySide2.QtXml.QDomCharacterData.appendData(arg)露
Parameters:

arg 鈥� str

Appends the string arg to 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

setData()

PySide2.QtXml.QDomCharacterData.deleteData(offset, count)露
Parameters:
  • offset 鈥� int

  • count 鈥� int

Deletes a substring of length count from position offset .

PySide2.QtXml.QDomCharacterData.insertData(offset, arg)露
Parameters:
  • offset 鈥� int

  • arg 鈥� str

Inserts the string arg into the stored string at position offset .

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 count starting at position offset with the string arg .

PySide2.QtXml.QDomCharacterData.setData(arg__1)露
Parameters:

arg__1 鈥� str

Sets this object鈥檚 string to v .

See also

data()

PySide2.QtXml.QDomCharacterData.substringData(offset, count)露
Parameters:
  • offset 鈥� int

  • count 鈥� int

Return type:

str

Returns the substring of length count from position offset .