@@ -624,7 +624,7 @@ \subsection{Expat error constants \label{expat-errors}}
624624\end {datadescni }
625625
626626\begin {datadescni }{XML_ERROR_PARTIAL_CHAR}
627-
627+ An incomplete character was found in the input.
628628\end {datadescni }
629629
630630\begin {datadescni }{XML_ERROR_RECURSIVE_ENTITY_REF}
@@ -652,3 +652,84 @@ \subsection{Expat error constants \label{expat-errors}}
652652\begin {datadescni }{XML_ERROR_UNKNOWN_ENCODING}
653653The document encoding is not supported by Expat.
654654\end {datadescni }
655+
656+ \begin {datadescni }{XML_ERROR_UNCLOSED_CDATA_SECTION}
657+ A CDATA marked section was not closed.
658+ \end {datadescni }
659+
660+ \begin {datadescni }{XML_ERROR_EXTERNAL_ENTITY_HANDLING}
661+ \end {datadescni }
662+
663+ \begin {datadescni }{XML_ERROR_NOT_STANDALONE}
664+ The parser determined that the document was not `` standalone'' though
665+ it declared itself to be in the XML declaration, and the
666+ \member {NotStandaloneHandler} was set and returned \code {0}.
667+ \end {datadescni }
668+
669+ \begin {datadescni }{XML_ERROR_UNEXPECTED_STATE}
670+ \end {datadescni }
671+
672+ \begin {datadescni }{XML_ERROR_ENTITY_DECLARED_IN_PE}
673+ \end {datadescni }
674+
675+ \begin {datadescni }{XML_ERROR_FEATURE_REQUIRES_XML_DTD}
676+ An operation was requested that requires DTD support to be compiled
677+ in, but Expat was configured without DTD support. This should never
678+ be reported by a standard build of the \module {xml.parsers.expat}
679+ module.
680+ \end {datadescni }
681+
682+ \begin {datadescni }{XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING}
683+ A behavioral change was requested after parsing started that can only
684+ be changed before parsing has started. This is (currently) only
685+ raised by \method {UseForeignDTD()}.
686+ \end {datadescni }
687+
688+ \begin {datadescni }{XML_ERROR_UNBOUND_PREFIX}
689+ An undeclared prefix was found when namespace processing was enabled.
690+ \end {datadescni }
691+
692+ \begin {datadescni }{XML_ERROR_UNDECLARING_PREFIX}
693+ The document attempted to remove the namespace declaration associated
694+ with a prefix.
695+ \end {datadescni }
696+
697+ \begin {datadescni }{XML_ERROR_INCOMPLETE_PE}
698+ A parameter entity contained incomplete markup.
699+ \end {datadescni }
700+
701+ \begin {datadescni }{XML_ERROR_XML_DECL}
702+ The document contained no document element at all.
703+ \end {datadescni }
704+
705+ \begin {datadescni }{XML_ERROR_TEXT_DECL}
706+ There was an error parsing a text declaration in an external entity.
707+ \end {datadescni }
708+
709+ \begin {datadescni }{XML_ERROR_PUBLICID}
710+ Characters were found in the public id that are not allowed.
711+ \end {datadescni }
712+
713+ \begin {datadescni }{XML_ERROR_SUSPENDED}
714+ The requested operation was made on a suspended parser, but isn't
715+ allowed. This includes attempts to provide additional input or to
716+ stop the parser.
717+ \end {datadescni }
718+
719+ \begin {datadescni }{XML_ERROR_NOT_SUSPENDED}
720+ An attempt to resume the parser was made when the parser had not been
721+ suspended.
722+ \end {datadescni }
723+
724+ \begin {datadescni }{XML_ERROR_ABORTED}
725+ This should not be reported to Python applications.
726+ \end {datadescni }
727+
728+ \begin {datadescni }{XML_ERROR_FINISHED}
729+ The requested operation was made on a parser which was finished
730+ parsing input, but isn't allowed. This includes attempts to provide
731+ additional input or to stop the parser.
732+ \end {datadescni }
733+
734+ \begin {datadescni }{XML_ERROR_SUSPEND_PE}
735+ \end {datadescni }
0 commit comments