QDomEntityReference 类

QDomEntityReference class represents an XML entity reference. 更多...

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

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

公共函数

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

详细描述

QDomEntityReference class represents an XML entity reference.

A QDomEntityReference object may be inserted into the DOM tree when an entity reference is in the source document, or when the user wishes to insert an entity reference.

Note that character references and references to predefined entities are expanded by the XML processor so that characters are represented by their Unicode equivalent rather than by an entity reference.

Moreover, the XML processor may completely expand references to entities while building the DOM tree, instead of providing QDomEntityReference 对象。

If it does provide such objects, then for a given entity reference node, it may be that there is no entity node representing the referenced entity; but if such an entity exists, then the child list of the entity reference node is the same as that of the entity node. As with the entity node, all descendants of the entity reference are read-only.

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

成员函数文档编制

QDomEntityReference:: QDomEntityReference ()

Constructs an empty entity reference. Use QDomDocument::createEntityReference () to create a entity reference with content.

QDomEntityReference:: QDomEntityReference (const QDomEntityReference & x )

构造副本为 x .

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

QDomNode::NodeType QDomEntityReference:: nodeType () const

返回 EntityReference .

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

赋值 x to this entity reference.

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