QDomNotation 类

QDomNotation class represents an XML notation. 更多...

头: #include <QDomNotation>
qmake: QT += xml
继承: QDomNode

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

公共函数

QDomNotation ()
QDomNotation (const QDomNotation & x )
QDomNode::NodeType nodeType () const
QString publicId () const
QString systemId () const
QDomNotation & operator= (const QDomNotation & x )

详细描述

QDomNotation class represents an XML notation.

A notation either declares, by name, the format of an unparsed entity (see section 4.7 of the XML 1.0 specification), or is used for formal declaration of processing instruction targets (see section 2.6 of the XML 1.0 specification).

DOM does not support editing notation nodes; they are therefore read-only.

A notation node does not have any parent.

可以检索 publicId () 和 systemId () from a notation node.

有关文档对象模型的进一步信息,见 级别 1 and 级别 2 核心 。有关 DOM 实现的更一般介绍,见 QDomDocument 文档编制。

成员函数文档编制

QDomNotation:: QDomNotation ()

构造函数。

QDomNotation:: QDomNotation (const QDomNotation & x )

构造副本为 x .

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

QDomNode::NodeType QDomNotation:: nodeType () const

返回 NotationNode .

QString QDomNotation:: publicId () const

Returns the public identifier of this notation.

QString QDomNotation:: systemId () const

Returns the system identifier of this notation.

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

赋值 x to this DOM notation.

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