ErrorHandler.fatalError(exception) Called when the parser encounters an error it cannot recover from; parsing is expected to
HTMLParser.handle_charref(name) This method is called to process decimal and hexadecimal numeric character references of the
Element.setAttributeNS(namespaceURI, qname, value) Set an attribute value from a string, given a namespaceURI and a
DOMImplementation.createDocumentType(qualifiedName, publicId, systemId) Return a new DocumentType object that encapsulates
xml.sax.saxutils.quoteattr(data, entities={}) Similar to escape(), but also prepares data to be used as
HTMLParser.handle_startendtag(tag, attrs) Similar to handle_starttag(), but called when the parser encounters an
xmlparser.NotationDeclHandler(notationName, base, systemId, publicId) Called for notation declarations. notationName
xmlparser.StartNamespaceDeclHandler(prefix, uri) Called when an element contains a namespace declaration. Namespace declarations
Element.removeAttributeNS(namespaceURI, localName) Remove an attribute by name. Note that it uses a localName, not a qname.
InputSource.setCharacterStream(charfile) Set the character stream (a text file) for this
Page 2 of 34