HTMLParser.handle_startendtag(tag, attrs) Similar to handle_starttag(), but called when the parser encounters an
xmlparser.StartElementHandler(name, attributes) Called for the start of every element. name is a string containing
xmlparser.NotationDeclHandler(notationName, base, systemId, publicId) Called for notation declarations. notationName
class xml.sax.xmlreader.InputSource(system_id=None) Encapsulation of the information needed by the XMLReader to
class xml.sax.xmlreader.IncrementalParser In some cases, it is desirable not to parse an input source at once, but to feed chunks
xmlparser.StartNamespaceDeclHandler(prefix, uri) Called when an element contains a namespace declaration. Namespace declarations
Source code: Lib/xml/
html.unescape(s) Convert all named and numeric character references (e.g. >, >,
HTMLParser.feed(data) Feed some text to the parser. It is processed insofar as it consists of complete elements; incomplete
xml.sax.saxutils.prepare_input_source(source, base='') This function takes an input source and an optional base URL and returns
Page 1 of 34