内容表

上一话题

QDomDocumentFragment

下一话题

QDomElement

QDomDocumentType

QDomDocumentType class is the representation of the DTD in the document tree. 更多

Inheritance diagram of PySide2.QtXml.QDomDocumentType

概要

详细描述

QDomDocumentType class allows read-only access to some of the data structures in the DTD: it can return a map of all entities() and notations() . In addition the function name() returns the name of the document type as specified in the <!DOCTYPE name> tag. This class also provides the publicId() , systemId() and internalSubset() 函数。

另请参阅

QDomDocument

class QDomDocumentType

QDomDocumentType(x)

param x

QDomDocumentType

Creates an empty QDomDocumentType 对象。

PySide2.QtXml.QDomDocumentType. entities ( )
返回类型

QDomNamedNodeMap

Returns a map of all entities described in the DTD.

PySide2.QtXml.QDomDocumentType. internalSubset ( )
返回类型

unicode

Returns the internal subset of the document type or an empty string if there is no internal subset.

PySide2.QtXml.QDomDocumentType. name ( )
返回类型

unicode

Returns the name of the document type as specified in the <!DOCTYPE name> tag.

另请参阅

nodeName()

PySide2.QtXml.QDomDocumentType. notations ( )
返回类型

QDomNamedNodeMap

Returns a map of all notations described in the DTD.

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

unicode

Returns the public identifier of the external DTD subset or an empty string if there is no public identifier.

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

unicode

Returns the system identifier of the external DTD subset or an empty string if there is no system identifier.