QDomEntityclass represents an XML entity. 更多 …
def
notationName
()
def
publicId
()
def
systemId
()
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
QDomEntityReferencenode 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()andnotationName()当可用时。有关文档对象模型的进一步信息,见 级别 1 and 级别 2 核心 。有关 DOM 实现的更一般介绍,见
QDomDocument文档编制。
QDomEntity
¶
QDomEntity(x)
- param x
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.