xml.dom.DOMImplementation.hasFeature()

DOMImplementation.hasFeature(feature, version) Return true if the feature identified by the pair of strings feature and version is implemented.

xml.dom.DOMImplementation.createDocument()

DOMImplementation.createDocument(namespaceUri, qualifiedName, doctype) Return a new Document object (the root of the DOM), with a child Element object having the given namespaceUri and qualifiedName. The doctype must be a DocumentType object created by createDocumentType(), or None. In the Python DOM API, the first two arguments can also be None in order to indicate that no Element child is to be created.

xml.dom.Element.getAttribute()

Element.getAttribute(name) Return the value of the attribute named by name as a string. If no such attribute exists, an empty string is returned, as if the attribute had no value.

xml.dom.DOMImplementation.createDocumentType()

DOMImplementation.createDocumentType(qualifiedName, publicId, systemId) Return a new DocumentType object that encapsulates the given qualifiedName, publicId, and systemId strings, representing the information contained in an XML document type declaration.

xml.dom.DocumentType.publicId

DocumentType.publicId The public identifier for the external subset of the document type definition. This will be a string or None.

xml.dom.DocumentType.internalSubset

DocumentType.internalSubset A string giving the complete internal subset from the document. This does not include the brackets which enclose the subset. If the document has no internal subset, this should be None.

xml.dom.DocumentType.notations

DocumentType.notations This is a NamedNodeMap giving the definitions of notations. For notation names defined more than once, only the first definition is provided (others are ignored as required by the XML recommendation). This may be None if the information is not provided by the parser, or if no notations are defined.

xml.dom.DocumentType.systemId

DocumentType.systemId The system identifier for the external subset of the document type definition. This will be a URI as a string, or None.

xml.dom.DocumentType.entities

DocumentType.entities This is a NamedNodeMap giving the definitions of external entities. For entity names defined more than once, only the first definition is provided (others are ignored as required by the XML recommendation). This may be None if the information is not provided by the parser, or if no entities are defined.

xml.dom.DocumentType.name

DocumentType.name The name of the root element as given in the DOCTYPE declaration, if present.