25.81. DocumentType: the DTD of an XML documentDOM Level 1 XML: Node DocumentType25.81.1. Properties
25.81.2. DescriptionThis infrequently used interface represents the DTD of an XML document. Programmers working exclusively with HTML documents never need to use this interface. Because a DTD is not part of a document's content, DocumentType nodes never appear in the document tree. If an XML document has a DTD, the DocumentType node for that DTD is available through the doctype property of the Document node. Although the W3C DOM includes an API for accessing the XML entities and notations defined in a DTD, that API is not documented here. Typical web browsers do not parse the DTDs for the documents they load, and client-side JavaScript can not access those entities and notations. For client-side JavaScript programming, this interface represents only the contents of the <!DOCTYPE> tag, not the contents of the DTD file it references. DocumentType nodes are immutable and may not be modified in any way. 25.81.3. See AlsoDocument, DOMImplementation.createDocument( ), DOMImplementation.createDocumentType( ) |