Name
DocumentType — Inherits Node
Synopsis
This interface represents the DTD of your XML
document, or it is None if one
does not exist. Its attributes are read-only, per the DOM
specification, because the W3C is uncertain about how the different
XML schema efforts will impact DTD usage.
entitiesThis attribute returns a
NamedNodeMapcontaining both external and internal entities declared within the DTD. Parameter entities aren’t included and entities declared more than once are represented only by the first declaration. The members of theNamedNodeMapimplement theEntityinterface. If the information is not provided by the underlying parser, or if no entities are defined, this may beNone.internalSubsetThis attribute gives access to the internal DTD subset as a string, or
Noneif no internal subset is given. The value of this string does not include the brackets that surround the internal subset.nameThe name of the root element as given in the DTD.
notationsThis property represents a
NamedNodeMapof the notations within the DTD. Each member of the map implements theNotationinterface. Notations declared more than once are represented only by the first declaration. If the information is not provided by the underlying parser, or if no notations are defined, this may beNone.publicIdThis is the public identifier of the external subset. If there is no public identifier, this is
None.systemIdThis is the system identifier of the external subset. If there is no public identifier, this is ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access