Qt provides two sets of APIs to read and write well-formed XML: 基於流 and 基於 DOM .
Qt also provides specific support for some XML dialects. 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 ().
這些類與 XML 用戶相關。
| QDomAttr | 錶示 QDomElement 的一屬性 |
| QDomCDATASection | 錶示 XML CDATA 區間 |
| QDomCharacterData | 錶示一般 DOM 字符串 |
| QDomComment | 錶示 XML 注釋 |
| QDomDocument | 錶示 XML 文檔 |
| QDomDocument::ParseResult | Struct is used to store the result of QDomDocument::setContent() |
| QDomDocumentFragment | QDomNode 樹通常是不完整 QDomDocument |
| QDomDocumentType | 文檔樹中的 DTD (文檔類型定義) 錶示 |
| QDomElement | 錶示一個 DOM 樹元素 |
| QDomEntity | 錶示 XML 實體 |
| QDomEntityReference | 錶示 XML 實體引用 |
| QDomImplementation | DOM 實現特徵的有關信息 |
| QDomNamedNodeMap | 包含可以按名稱訪問的節點集閤 |
| QDomNode | 所有 DOM 樹節點的基類 |
| QDomNodeList | QDomNode 對象列錶 |
| QDomNotation | 錶示 XML 錶示法 |
| QDomProcessingInstruction | 錶示 XML 處理指令 |
| QDomText | 錶示 XML 文檔的剖析文本數據 |
| QXmlAttributes | XML attributes |
| QXmlContentHandler | Interface to report the logical content of XML data |
| QXmlDTDHandler | Interface to report DTD content of XML data |
| QXmlDeclHandler | Interface to report declaration content of XML data |
| QXmlDefaultHandler | Default implementation of all the XML handler classes |
| QXmlEntityResolver | Interface to resolve external entities contained in XML data |
| QXmlErrorHandler | Interface to report errors in XML data |
| QXmlInputSource | The input data for the QXmlReader subclasses |
| QXmlLexicalHandler | Interface to report the lexical content of XML data |
| 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 |
| QXmlParseException | Used to report errors with the QXmlErrorHandler interface |
| QXmlReader | Interface for XML readers (i.e. parsers) |
| QXmlSimpleReader | Implementation of a simple XML parser |
| QXmlStreamAttribute | 錶示單 XML 屬性 |
| QXmlStreamAttributes | 錶示 QXmlStreamAttribute 嚮量 |
| QXmlStreamEntityDeclaration | 錶示 DTD 實體聲明 |
| QXmlStreamEntityResolver | 用於 QXmlStreamReader 的實體解析器 |
| QXmlStreamNamespaceDeclaration | 錶示名稱空間聲明 |
| QXmlStreamNotationDeclaration | 錶示 DTD 錶示法聲明 |
| QXmlStreamReader | 用於憑藉簡單流化 API 讀取格式良好的 XML 的快速剖析器 |
| QXmlStreamWriter | 采用簡單流化 API 的 XML 寫入器 |