内容表

上一话题

QDomAttr

下一话题

QDomCharacterData

QDomCDATASection

QDomCDATASection class represents an XML CDATA section. 更多

Inheritance diagram of PySide2.QtXml.QDomCDATASection

详细描述

CDATA sections are used to escape blocks of text containing characters that would otherwise be regarded as markup. The only delimiter that is recognized in a CDATA section is the “]]>” string that terminates the CDATA section. CDATA sections cannot be nested. Their primary purpose is for including material such as XML fragments, without needing to escape all the delimiters.

相邻 QDomCDATASection nodes are not merged by the normalize() 函数。

有关文档对象模型的进一步信息,见 http://www.w3.org/TR/REC-DOM-Level-1/ and http://www.w3.org/TR/DOM-Level-2-Core/ 。有关 DOM 实现的更一般介绍,见 QDomDocument 文档编制。

class QDomCDATASection

QDomCDATASection(x)

param x

QDomCDATASection

构造空 CDATA 区间。要创建具有内容的 CDATA 区间,使用 createCDATASection() 函数。