xml.sax.handler.ContentHandler.endElementNS()

ContentHandler.endElementNS(name, qname) Signals the end of an element in namespace mode. The name parameter contains the name of the element type, just as with the startElementNS() method, likewise the qname parameter.

xml.sax.handler.ContentHandler.endPrefixMapping()

ContentHandler.endPrefixMapping(prefix) End the scope of a prefix-URI mapping. See startPrefixMapping() for details. This event will always occur after the corresponding endElement() event, but the order of endPrefixMapping() events is not otherwise guaranteed.

xml.sax.handler.ContentHandler.characters()

ContentHandler.characters(content) Receive notification of character data. The Parser will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity so that the Locator provides useful information. content may be a string or bytes instance; the expat reader module always produces strings. N

xml.sax.handler.ContentHandler.endElement()

ContentHandler.endElement(name) Signals the end of an element in non-namespace mode. The name parameter contains the name of the element type, just as with the startElement() event.

xml.sax.handler.all_properties

xml.sax.handler.all_properties List of all known property names.

xml.parsers.expat.XMLParserType

xml.parsers.expat.XMLParserType The type of the return values from the ParserCreate() function.

xml.parsers.expat.xmlparser.XmlDeclHandler()

xmlparser.XmlDeclHandler(version, encoding, standalone) Called when the XML declaration is parsed. The XML declaration is the (optional) declaration of the applicable version of the XML recommendation, the encoding of the document text, and an optional “standalone” declaration. version and encoding will be strings, and standalone will be 1 if the document is declared standalone, 0 if it is declared not to be standalone, or -1 if the standalone clause was omitted. This is only available with

xml.sax.handler.all_features

xml.sax.handler.all_features List of all features.

xml.parsers.expat.xmlparser.StartNamespaceDeclHandler()

xmlparser.StartNamespaceDeclHandler(prefix, uri) Called when an element contains a namespace declaration. Namespace declarations are processed before the StartElementHandler is called for the element on which declarations are placed.

xml.parsers.expat.xmlparser.StartCdataSectionHandler()

xmlparser.StartCdataSectionHandler() Called at the start of a CDATA section. This and EndCdataSectionHandler are needed to be able to identify the syntactical start and end for CDATA sections.