XML Processing

An Overview of the XML processing facilities in Qt.

Qt provides two general-purpose sets of APIs to read and write well-formed XML: stream based and DOM based .

Qt also provides specific support for some XML dialects. For instance, the Qt SVG module provides the QSvgRenderer and QSvgGenerator classes to read and write a subset of SVG, an XML-based file format. Qt also provides helper functions that may be useful to those working with XML and XHTML: see Qt::escape() and Qt::convertFromPlainText().

Topics:

Classes for XML Processing

These classes are relevant to XML users.

PySide6.QtXml.QDomImplementation

The QDomImplementation class provides information about the features of the DOM implementation.

PySide6.QtXml.QDomNodeList

The QDomNodeList class is a list of QDomNode objects.

PySide6.QtXml.QDomNode

The QDomNode class is the base class for all the nodes in a DOM tree.

PySide6.QtXml.QDomNamedNodeMap

The QDomNamedNodeMap class contains a collection of nodes that can be accessed by name.

PySide6.QtXml.QDomDocumentType

The QDomDocumentType class is the representation of the DTD in the document tree.

PySide6.QtXml.QDomDocumentFragment

The QDomDocumentFragment class is a tree of QDomNodes which is not usually a complete QDomDocument.

PySide6.QtXml.QDomCharacterData

The QDomCharacterData class represents a generic string in the DOM.

PySide6.QtXml.QDomAttr

The QDomAttr class represents one attribute of a QDomElement.

PySide6.QtXml.QDomElement

The QDomElement class represents one element in the DOM tree.

PySide6.QtXml.QDomText

The QDomText class represents text data in the parsed XML document.

PySide6.QtXml.QDomComment

The QDomComment class represents an XML comment.

PySide6.QtXml.QDomCDATASection

The QDomCDATASection class represents an XML CDATA section.

PySide6.QtXml.QDomNotation

The QDomNotation class represents an XML notation.

PySide6.QtXml.QDomEntity

The QDomEntity class represents an XML entity.

PySide6.QtXml.QDomEntityReference

The QDomEntityReference class represents an XML entity reference.

PySide6.QtXml.QDomProcessingInstruction

The QDomProcessingInstruction class represents an XML processing instruction.

PySide6.QtXml.QDomDocument

The QDomDocument class represents an XML document.

QDomDocument.ParseResult

The struct is used to store the result of QDomDocument::setContent().