xmlparser.StartNamespaceDeclHandler(prefix, uri) Called when an element contains a namespace declaration. Namespace declarations
xmlparser.specified_attributes If set to a non-zero integer, the parser will report only those attributes which were specified
Text.data The content of the text node as a string.
HTMLParser.handle_charref(name) This method is called to process decimal and hexadecimal numeric character references of the
Element.removeAttributeNS(namespaceURI, localName) Remove an attribute by name. Note that it uses a localName, not a qname.
xmlparser.buffer_text Setting this to true causes the xmlparser object to buffer textual content returned by Expat
Node.prefix The part of the tagName preceding the colon if there is one, else the empty string. The value is a
html.entities.entitydefs A dictionary mapping XHTML 1.0 entity definitions to their replacement text in ISO Latin-1.
Node.unlink() Break internal references within the DOM so that it will be garbage collected on versions of Python without cyclic
xmlparser.StartElementHandler(name, attributes) Called for the start of every element. name is a string containing
Page 2 of 34