[Python-checkins] CVS: python/dist/src/Doc/lib libpyexpat.tex,1.15,1.16

Fred L. Drake fdrake@users.sourceforge.net
Thu, 20 Sep 2001 13:43:30 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv24843/lib

Modified Files:
	libpyexpat.tex 
Log Message:
Fill in a few more descriptions for xml.parsers.expat.


Index: libpyexpat.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libpyexpat.tex,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** libpyexpat.tex	2001/02/15 05:37:51	1.15
--- libpyexpat.tex	2001/09/20 20:43:28	1.16
***************
*** 34,38 ****
  
  \begin{excdesc}{ExpatError}
!   The exception raised when Expat reports an error.
  \end{excdesc}
  
--- 34,40 ----
  
  \begin{excdesc}{ExpatError}
!   The exception raised when Expat reports an error.  See section
!   \ref{expaterror-objects}, ``ExpatError Exceptions,'' for more
!   information on interpreting Expat errors.
  \end{excdesc}
  
***************
*** 170,174 ****
  handlers.
  \versionchanged[Can be changed at any time to affect the result
!   type.]{1.6}
  \end{memberdesc}
  
--- 172,176 ----
  handlers.
  \versionchanged[Can be changed at any time to affect the result
!   type]{1.6}
  \end{memberdesc}
  
***************
*** 515,527 ****
  
  \begin{datadescni}{XML_CQUANT_NONE}
  \end{datadescni}
  
  \begin{datadescni}{XML_CQUANT_OPT}
! The model is option: it can appear once or not at all, as for
  \code{A?}.
  \end{datadescni}
  
  \begin{datadescni}{XML_CQUANT_PLUS}
! The model must occur one or more times (\code{A+}).
  \end{datadescni}
  
--- 517,530 ----
  
  \begin{datadescni}{XML_CQUANT_NONE}
+ No modifier is given, so it can appear exactly once, as for \code{A}.
  \end{datadescni}
  
  \begin{datadescni}{XML_CQUANT_OPT}
! The model is optional: it can appear once or not at all, as for
  \code{A?}.
  \end{datadescni}
  
  \begin{datadescni}{XML_CQUANT_PLUS}
! The model must occur one or more times (like \code{A+}).
  \end{datadescni}
  
***************
*** 550,556 ****
--- 553,563 ----
  
  \begin{datadescni}{XML_ERROR_BAD_CHAR_REF}
+ A character reference referred to a character which is illegal in XML
+ (for example, character \code{0}, or `\code{\&\#0;}'.
  \end{datadescni}
  
  \begin{datadescni}{XML_ERROR_BINARY_ENTITY_REF}
+ An entity reference referred to an entity which was declared with a
+ notation, so cannot be parsed.
  \end{datadescni}
  
***************
*** 563,566 ****
--- 570,576 ----
  
  \begin{datadescni}{XML_ERROR_INVALID_TOKEN}
+ Raised when an input byte could not properly be assigned to a
+ character; for example, a NUL byte (value \code{0}) in a UTF-8 input
+ stream.
  \end{datadescni}
  
***************
*** 570,577 ****
  
  \begin{datadescni}{XML_ERROR_MISPLACED_XML_PI}
  \end{datadescni}
  
  \begin{datadescni}{XML_ERROR_NO_ELEMENTS}
! The document contains no elements.
  \end{datadescni}
  
--- 580,590 ----
  
  \begin{datadescni}{XML_ERROR_MISPLACED_XML_PI}
+ An XML declaration was found somewhere other than the start of the
+ input data.
  \end{datadescni}
  
  \begin{datadescni}{XML_ERROR_NO_ELEMENTS}
! The document contains no elements (XML requires all documents to
! contain exactly one top-level element)..
  \end{datadescni}
  
***************
*** 581,590 ****
--- 594,607 ----
  
  \begin{datadescni}{XML_ERROR_PARAM_ENTITY_REF}
+ A parameter entity reference was found where it was not allowed.
  \end{datadescni}
  
  \begin{datadescni}{XML_ERROR_PARTIAL_CHAR}
+ 
  \end{datadescni}
  
  \begin{datadescni}{XML_ERROR_RECURSIVE_ENTITY_REF}
+ An entity reference contained another reference to the same entity;
+ possibly via a different name, and possibly indirectly.
  \end{datadescni}
  
***************
*** 598,601 ****
--- 615,620 ----
  
  \begin{datadescni}{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.
  \end{datadescni}