PyDocs

Nav

Structured Markup Processing Tools

DocumentType

xml.dom

class
Information about the notations and entities declared by a document (including the external subset if the parser uses it and can provide the information) is available from a DocumentType object. The DocumentType for a document is available from the Document object’s doctype attribute; if there is no DOCTYPE declaration for the document, the document’s doctype attribute will be set to None instead of an instance of this interface.
Members of DocumentType

e

entities
This is a NamedNodeMap of Entity nodes giving the definitions of external entities.

i

internalSubset
A string giving the complete internal subset from the document.

n

name
The name of the root element as given in the DOCTYPE declaration, if present.
notations
This is a NamedNodeMap of Notation nodes giving the definitions of notations.

p

publicId
The public identifier for the external subset of the document type definition, or None if the DOCTYPE declaration does not specify it.

s

systemId
The system identifier, a URI, for the external subset of the document type definition, or None if the DOCTYPE declaration does not specify it.
0 Examples
No examples for xml.dom/DocumentType.
See Also
No see-alsos for xml.dom/DocumentType
0 Notes
No notes for DocumentType