QDomCDATASection 类

QDomCDATASection class represents an XML CDATA section. 更多...

头: #include <QDomCDATASection>
qmake: QT += xml
继承: QDomText

注意: 此类的所有函数 可重入 .

公共函数

QDomCDATASection ()
QDomCDATASection (const QDomCDATASection & x )
QDomNode::NodeType nodeType () const
QDomCDATASection & operator= (const QDomCDATASection & x )

详细描述

QDomCDATASection class represents an XML CDATA section.

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 QDomNode::normalize () 函数。

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

成员函数文档编制

QDomCDATASection:: QDomCDATASection ()

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

QDomCDATASection:: QDomCDATASection (const QDomCDATASection & x )

构造副本为 x .

拷贝数据是共享的 (浅拷贝):修改一个节点也将改变另一节点。若想要制作深度副本,使用 cloneNode ().

QDomNode::NodeType QDomCDATASection:: nodeType () const

返回 CDATASection .

QDomCDATASection &QDomCDATASection:: operator= (const QDomCDATASection & x )

赋值 x 到此 CDATA 区间。

拷贝数据是共享的 (浅拷贝):修改一个节点也将改变另一节点。若想要制作深度副本,使用 cloneNode ().