内容表

上一话题

QDomElement

下一话题

QDomEntityReference

QDomEntity

QDomEntity class represents an XML entity. 更多

Inheritance diagram of PySide2.QtXml.QDomEntity

概要

详细描述

This class represents an entity in an XML document, either parsed or unparsed. Note that this models the entity itself not the entity declaration.

DOM does not support editing entity nodes; if a user wants to make changes to the contents of an entity, every related QDomEntityReference node must be replaced in the DOM tree by a clone of the entity’s contents, and then the desired changes must be made to each of the clones instead. All the descendants of an entity node are read-only.

An entity node does not have any parent.

You can access the entity’s publicId() , systemId() and notationName() 当可用时。

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

class QDomEntity

QDomEntity(x)

param x

QDomEntity

Constructs an empty entity.

PySide2.QtXml.QDomEntity. notationName ( )
返回类型

unicode

For unparsed entities this function returns the name of the notation for the entity. For parsed entities this function returns an empty string.

PySide2.QtXml.QDomEntity. publicId ( )
返回类型

unicode

Returns the public identifier associated with this entity. If the public identifier was not specified an empty string is returned.

PySide2.QtXml.QDomEntity. systemId ( )
返回类型

unicode

Returns the system identifier associated with this entity. If the system identifier was not specified an empty string is returned.