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 写入器 |