xml.sax.make_parser()

xml.sax.make_parser(parser_list=[]) Create and return a SAX XMLReader object. The first parser found will be used. If parser_list is provided, it must be a sequence of strings which name modules that have a function named create_parser(). Modules listed in parser_list will be used before modules in the default list of parsers.

xml.sax.handler.property_xml_string

xml.sax.handler.property_xml_string value: "http://xml.org/sax/properties/xml-string" data type: String description: The literal string of characters that was the source for the current event. access: read-only

xml.sax.handler.property_declaration_handler

xml.sax.handler.property_declaration_handler value: "http://xml.org/sax/properties/declaration-handler" data type: xml.sax.sax2lib.DeclHandler (not supported in Python 2) description: An optional extension handler for DTD-related events other than notations and unparsed entities. access: read/write

xml.sax.handler.property_lexical_handler

xml.sax.handler.property_lexical_handler value: "http://xml.org/sax/properties/lexical-handler" data type: xml.sax.sax2lib.LexicalHandler (not supported in Python 2) description: An optional extension handler for lexical events like comments. access: read/write

xml.sax.handler.property_dom_node

xml.sax.handler.property_dom_node value: "http://xml.org/sax/properties/dom-node" data type: org.w3c.dom.Node (not supported in Python 2) description: When parsing, the current DOM node being visited if this is a DOM iterator; when not parsing, the root DOM node for iteration. access: (parsing) read-only; (not parsing) read/write

xml.sax.handler.ErrorHandler.fatalError()

ErrorHandler.fatalError(exception) Called when the parser encounters an error it cannot recover from; parsing is expected to terminate when this method returns.

xml.sax.handler.feature_namespaces

xml.sax.handler.feature_namespaces value: "http://xml.org/sax/features/namespaces" true: Perform Namespace processing. false: Optionally do not perform Namespace processing (implies namespace-prefixes; default). access: (parsing) read-only; (not parsing) read/write

xml.sax.handler.feature_string_interning

xml.sax.handler.feature_string_interning value: "http://xml.org/sax/features/string-interning" true: All element names, prefixes, attribute names, Namespace URIs, and local names are interned using the built-in intern function. false: Names are not necessarily interned, although they may be (default). access: (parsing) read-only; (not parsing) read/write

xml.sax.handler.ErrorHandler.warning()

ErrorHandler.warning(exception) Called when the parser presents minor warning information to the application. Parsing is expected to continue when this method returns, and document information will continue to be passed to the application. Raising an exception in this method will cause parsing to end.

xml.sax.handler.feature_validation

xml.sax.handler.feature_validation value: "http://xml.org/sax/features/validation" true: Report all validation errors (implies external-general-entities and external-parameter-entities). false: Do not report validation errors. access: (parsing) read-only; (not parsing) read/write