PySide6.QtXml.QDomDocumentType¶
- class QDomDocumentType¶
QDomDocumentType
类是文档树中 DTD 的表示。更多…概要¶
方法¶
def
__init__()
def
entities()
def
internalSubset()
def
name()
def
notations()
def
publicId()
def
systemId()
注意
本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。
详细描述¶
QDomDocumentType
类允许对DTD中的一些数据结构进行只读访问:它可以返回所有entities()
和notations()
的映射。此外,函数name()
返回在 标签中指定的文档类型名称。该类还提供了publicId()
、systemId()
和internalSubset()
函数。另请参阅
- __init__()¶
创建一个空的
QDomDocumentType
对象。- __init__(documentType)
- Parameters:
documentType –
QDomDocumentType
构造一个
documentType
的副本。复制的数据是共享的(浅拷贝):修改一个节点也会改变另一个。如果你想进行深拷贝,请使用
cloneNode()
。- entities()¶
- Return type:
返回DTD中描述的所有实体的映射。
- internalSubset()¶
- Return type:
字符串
返回文档类型的内部子集,如果没有内部子集则返回空字符串。
另请参阅
- name()¶
- Return type:
字符串
返回在 标签中指定的文档类型的名称。
另请参阅
- notations()¶
- Return type:
返回DTD中描述的所有符号的映射。
- publicId()¶
- Return type:
字符串
返回外部DTD子集的公共标识符,如果没有公共标识符,则返回空字符串。
- systemId()¶
- Return type:
字符串
返回外部DTD子集的系统标识符,如果没有系统标识符,则返回空字符串。