Staging: this is not the live site, pydocs.org.
Structured Markup Processing Tools xml.parsers.expat.errors Symbols in xml.parsers.expat.errors c codes A dictionary mapping string descriptions to their error codes. m messages A dictionary mapping numeric error codes to their string descriptions. x XML_ERROR_ASYNC_ENTITY An entity reference in an attribute value referred to an external entity instead of an internal entity. XML_ERROR_BAD_CHAR_REF A character reference referred to a character which is illegal in XML (for example, character 0, or ‘�’). XML_ERROR_EXTERNAL_ENTITY_HANDLING The parser determined that the document was not “standalone” though it declared itself to be in the XML declaration, and the NotStandaloneHandler was set and returned 0. XML_ERROR_FINISHED The requested operation was made on a parser which was finished parsing input, but isn’t allowed. XML_ERROR_INCORRECT_ENCODING Raised when an input byte could not properly be assigned to a character; for example, a NUL byte (value 0) in a UTF-8 input stream. XML_ERROR_INVALID_TOKEN Raised when an input byte could not properly be assigned to a character; for example, a NUL byte (value 0) in a UTF-8 input stream. XML_ERROR_NO_ELEMENTS The document contains no elements (XML requires all documents to contain exactly one top-level element). XML_ERROR_NOT_STANDALONE The parser determined that the document was not “standalone” though it declared itself to be in the XML declaration, and the NotStandaloneHandler was set and returned 0. XML_ERROR_RECURSIVE_ENTITY_REF An entity reference contained another reference to the same entity; possibly via a different name, and possibly indirectly. XML_ERROR_SUSPEND_PE An attempt was made to undeclare reserved namespace prefix xml or to bind it to another namespace URI. XML_ERROR_UNCLOSED_TOKEN Some token (such as a start tag) was not closed before the end of the stream or the next token was encountered. XML_ERROR_UNEXPECTED_STATE An operation was requested that requires DTD support to be compiled in, but Expat was configured without DTD support.
Python docs © Python Software Foundation · Examples CC0 ·
Source on GitHub · Not affiliated with the PSF