XML Processing

In addition to core XML support, classes for higher level querying and manipulation of XML data are provided by the Qt XML Patterns module. In the Qt SVG module, the QSvgRenderer and QSvgGenerator classes can 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.

QXmlStreamAttribute

The QXmlStreamAttribute class represents a single XML attribute

QXmlStreamAttributes

The QXmlStreamAttributes class represents a vector of QXmlStreamAttribute.

QXmlStreamEntityDeclaration

The QXmlStreamEntityDeclaration class represents a DTD entity declaration.

QXmlStreamEntityResolver

The QXmlStreamEntityResolver class provides an entity resolver for a QXmlStreamReader.

QXmlStreamNamespaceDeclaration

The QXmlStreamNamespaceDeclaration class represents a namespace declaration.

QXmlStreamNotationDeclaration

The QXmlStreamNotationDeclaration class represents a DTD notation declaration.

QXmlStreamReader

The QXmlStreamReader class provides a fast parser for reading well-formed XML via a simple streaming API.

QXmlStreamWriter

The QXmlStreamWriter class provides an XML writer with a simple streaming API.

QDomImplementation

Information about the features of the DOM implementation

QDomNodeList

List of QDomNode objects

QDomNode

The base class for all the nodes in a DOM tree

QDomNamedNodeMap

Contains a collection of nodes that can be accessed by name

QDomDocumentType

The representation of the DTD in the document tree

QDomDocumentFragment

Tree of QDomNodes which is not usually a complete QDomDocument

QDomCharacterData

Represents a generic string in the DOM

QDomAttr

Represents one attribute of a QDomElement

QDomElement

Represents one element in the DOM tree

QDomText

Represents text data in the parsed XML document

QDomComment

Represents an XML comment

QDomCDATASection

Represents an XML CDATA section

QDomNotation

Represents an XML notation

QDomEntity

Represents an XML entity

QDomEntityReference

Represents an XML entity reference

QDomProcessingInstruction

Represents an XML processing instruction

QDomDocument

Represents an XML document

QXmlParseException

Used to report errors with the QXmlErrorHandler interface

QXmlLocator

The XML handler classes with information about the parsing position within a file

QXmlNamespaceSupport

Helper class for XML readers which want to include namespace support

QXmlAttributes

XML attributes

QXmlInputSource

The input data for the QXmlReader subclasses

QXmlContentHandler

Interface to report the logical content of XML data

QXmlErrorHandler

Interface to report errors in XML data

QXmlDTDHandler

Interface to report DTD content of XML data

QXmlEntityResolver

Interface to resolve external entities contained in XML data

QXmlLexicalHandler

Interface to report the lexical content of XML data

QXmlDeclHandler

Interface to report declaration content of XML data

QXmlDefaultHandler

Default implementation of all the XML handler classes

QXmlReader

Interface for XML readers (i.e. parsers)

QXmlSimpleReader

Implementation of a simple XML parser