Qt XML C++ Classes▲
The Qt XML module provides C++ implementations of the SAX and DOM standards for XML.
Classes▲
-
QDomAttr: The QDomAttr class represents one attribute of a QDomElement.
-
QDomCDATASection: The QDomCDATASection class represents an XML CDATA section.
-
QDomCharacterData: The QDomCharacterData class represents a generic string in the DOM.
-
QDomComment: The QDomComment class represents an XML comment.
-
QDomDocument: The QDomDocument class represents an XML document.
-
QDomDocumentFragment: The QDomDocumentFragment class is a tree of QDomNodes which is not usually a complete QDomDocument.
-
QDomDocumentType: The QDomDocumentType class is the representation of the DTD in the document tree.
-
QDomElement: The QDomElement class represents one element in the DOM tree.
-
QDomEntity: The QDomEntity class represents an XML entity.
-
QDomEntityReference: The QDomEntityReference class represents an XML entity reference.
-
QDomImplementation: The QDomImplementation class provides information about the features of the DOM implementation.
-
QDomNamedNodeMap: The QDomNamedNodeMap class contains a collection of nodes that can be accessed by name.
-
QDomNode: The QDomNode class is the base class for all the nodes in a DOM tree.
-
QDomNodeList: The QDomNodeList class is a list of QDomNode objects.
-
QDomNotation: The QDomNotation class represents an XML notation.
-
QDomProcessingInstruction: The QDomProcessingInstruction class represents an XML processing instruction.
-
QDomText: The QDomText class represents text data in the parsed XML document.
Detailed Description▲
Note that the module will not receive additional features anymore. For reading or writing XML documents iteratively (SAX), we recommend using Qt Core's QXmlStreamReader and QXmlStreamWriter classes. The classes are both easier to use and more compliant with the XML standard.
To include the definitions of the module's classes, use the following directive:
#include <QtXml>
To link against the module, add this line to your qmake .pro file:
QT +=
xml