|  | Home · Overviews · Examples |

# QDomCharacterData Class Reference
[com.trolltech.qt.xml module]

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

Inherits `QDomNode`.

Inherited by `QDomComment` and `QDomText`.

## Detailed Description

The `QDomCharacterData` class represents a generic string in the DOM.

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`.

See also `QDomText`, `QDomComment`, and `QDomCDATASection`.