PySide.QtXml.QDomDocumentType class is the representation of the DTD in the document tree.
PySide.QtXml.QDomDocumentType class allows read-only access to some of the data structures in the DTD: it can return a map of all PySide.QtXml.QDomDocumentType.entities() and PySide.QtXml.QDomDocumentType.notations() . In addition the function PySide.QtXml.QDomDocumentType.name() returns the name of the document type as specified in the <!DOCTYPE name> tag. This class also provides the PySide.QtXml.QDomDocumentType.publicId() , PySide.QtXml.QDomDocumentType.systemId() and PySide.QtXml.QDomDocumentType.internalSubset() 函数。
| 参数: | x – PySide.QtXml.QDomDocumentType |
|---|
Creates an empty PySide.QtXml.QDomDocumentType 对象。
构造副本为 n .
拷贝数据是共享的 (浅拷贝):修改一个节点也将改变另一节点。若想要制作深度副本,使用 PySide.QtXml.QDomNode.cloneNode() .
| 返回类型: | PySide.QtXml.QDomNamedNodeMap |
|---|
Returns a map of all entities described in the DTD.
| 返回类型: | unicode |
|---|
Returns the internal subset of the document type or an empty string if there is no internal subset.
| 返回类型: | unicode |
|---|
Returns the name of the document type as specified in the <!DOCTYPE name> tag.
| 返回类型: | PySide.QtXml.QDomNamedNodeMap |
|---|
Returns a map of all notations described in the DTD.
| 返回类型: | unicode |
|---|
Returns the public identifier of the external DTD subset or an empty string if there is no public identifier.
| 返回类型: | unicode |
|---|
Returns the system identifier of the external DTD subset or an empty string if there is no system identifier.