PySide6.QtXml.QDomDocumentType¶
- class QDomDocumentType¶
The
QDomDocumentTypeclass is the representation of the DTD in the document tree. More…Synopsis¶
Methods¶
def
__init__()def
entities()def
internalSubset()def
name()def
notations()def
publicId()def
systemId()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
The
QDomDocumentTypeclass allows read-only access to some of the data structures in the DTD: it can return a map of allentities()andnotations(). In addition the functionname()returns the name of the document type as specified in the <!DOCTYPE name> tag. This class also provides thepublicId(),systemId()andinternalSubset()functions.See also
- __init__()¶
Creates an empty
QDomDocumentTypeobject.- __init__(documentType)
- Parameters:
documentType –
QDomDocumentType
Constructs a copy of
documentType.The data of the copy is shared (shallow copy): modifying one node will also change the other. If you want to make a deep copy, use
cloneNode().- entities()¶
- Return type:
Returns a map of all entities described in the DTD.
- internalSubset()¶
- Return type:
str
Returns the internal subset of the document type or an empty string if there is no internal subset.
See also
- name()¶
- Return type:
str
Returns the name of the document type as specified in the <!DOCTYPE name> tag.
See also
nodeName()- notations()¶
- Return type:
Returns a map of all notations described in the DTD.
- publicId()¶
- Return type:
str
Returns the public identifier of the external DTD subset or an empty string if there is no public identifier.
- systemId()¶
- Return type:
str
Returns the system identifier of the external DTD subset or an empty string if there is no system identifier.