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

Fred L. Drake python-dev@python.org
Tue, 4 Jul 2000 19:03:37 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv6859

Modified Files:
	libpyexpat.tex 
Log Message:

Wrapped some long lines.
Cleaned up the table of error constants defined in pyexpat.errors; an
extra pair of braces had pretty much destroyed the table!  (Not sure why.)
Moved the pyexpat.errors module documentation into a \section with the
proper headers for a module.


Index: libpyexpat.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libpyexpat.tex,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** libpyexpat.tex	2000/06/11 02:42:07	1.1
--- libpyexpat.tex	2000/07/05 02:03:34	1.2
***************
*** 69,73 ****
  Parses the contents of the string \var{data}, calling the appropriate
  handler functions to process the parsed data.  \var{isfinal} must be
! true on the final call to this method.    \var{data} can be the empty string at any time.
  \end{methoddesc}
  
--- 69,74 ----
  Parses the contents of the string \var{data}, calling the appropriate
  handler functions to process the parsed data.  \var{isfinal} must be
! true on the final call to this method.    \var{data} can be the empty
! string at any time.
  \end{methoddesc}
  
***************
*** 117,121 ****
  
  Here is the list of handlers that can be set.  To set a handler on an
! \class{xmlparser} object \var{o}, use \code{\var{o}.\var{handlername} = \var{func}}.    \var{handlername} must be taken from the following list, and \var{func} must be a callable object accepting the correct number of arguments.  The arguments are all strings, unless otherwise stated.
  
  \begin{methoddesc}{StartElementHandler}{name, attributes}
--- 118,126 ----
  
  Here is the list of handlers that can be set.  To set a handler on an
! \class{xmlparser} object \var{o}, use
! \code{\var{o}.\var{handlername} = \var{func}}.  \var{handlername} must
! be taken from the following list, and \var{func} must be a callable
! object accepting the correct number of arguments.  The arguments are
! all strings, unless otherwise stated.
  
  \begin{methoddesc}{StartElementHandler}{name, attributes}
***************
*** 188,224 ****
  
  
  
! 
! 
! \subsection{\module{pyexpat.errors} -- Error constants}
! 
! The following table lists the error constants in the
! \module{pyexpat.errors} submodule, available once the \module{pyexpat} module has been imported.
! 
! \begin{tableii}{l|l}{code}{Constants}{}{}
!   \lineii        {XML_ERROR_ASYNC_ENTITY}
!         {XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF}
!   \lineii        {XML_ERROR_BAD_CHAR_REF}
!         {XML_ERROR_BINARY_ENTITY_REF}
!   \lineii        {XML_ERROR_DUPLICATE_ATTRIBUTE}
!         {XML_ERROR_INCORRECT_ENCODING}
!   \lineii        {XML_ERROR_INVALID_TOKEN}
!         {XML_ERROR_JUNK_AFTER_DOC_ELEMENT}
!   \lineii        {XML_ERROR_MISPLACED_XML_PI}
!         {XML_ERROR_NO_ELEMENTS} 
!   \lineii        {XML_ERROR_NO_MEMORY}
!         {XML_ERROR_PARAM_ENTITY_REF}
!   \lineii        {XML_ERROR_PARTIAL_CHAR}
!         {XML_ERROR_RECURSIVE_ENTITY_REF}
!   \lineii        {XML_ERROR_SYNTAX} 
! 	{XML_ERROR_TAG_MISMATCH}
!   \lineii        {XML_ERROR_UNCLOSED_TOKEN}
!         {XML_ERROR_UNDEFINED_ENTITY}
!   \lineii        {XML_ERROR_UNKNOWN_ENCODING}{}
! \end{tableii}
! 
! \subsection{Example}
! 
! The following program defines 3 handlers that just print out their
  arguments.
  
--- 193,199 ----
  
  
+ \subsection{Example \label{pyexpat-example}}
  
! The following program defines three handlers that just print out their
  arguments.
  
***************
*** 261,262 ****
--- 236,276 ----
  End element: parent
  \end{verbatim}
+ 
+ 
+ \section{\module{pyexpat.errors} --- Error constants}
+ 
+ \declaremodule{builtin}{pyexpat.errors}
+ \modulesynopsis{Error constants defined for the Expat parser}
+ \moduleauthor{Paul Prescod}{paul@prescod.net}
+ \sectionauthor{A.M. Kuchling}{amk1@bigfoot.com}
+ 
+ The following table lists the error constants in the
+ \module{pyexpat.errors} submodule, available once the
+ \refmodule{pyexpat} module has been imported.
+ 
+ Note that this module cannot be imported directly until
+ \refmodule{pyexpat} has been imported.
+ 
+ The following constants are defined:
+ 
+ \begin{tableii}{l|l}{code}{Constants}{}
+   \lineii{XML_ERROR_ASYNC_ENTITY}
+         {XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF}
+   \lineii{XML_ERROR_BAD_CHAR_REF}
+         {XML_ERROR_BINARY_ENTITY_REF}
+   \lineii{XML_ERROR_DUPLICATE_ATTRIBUTE}
+         {XML_ERROR_INCORRECT_ENCODING}
+   \lineii{XML_ERROR_INVALID_TOKEN}
+         {XML_ERROR_JUNK_AFTER_DOC_ELEMENT}
+   \lineii{XML_ERROR_MISPLACED_XML_PI}
+         {XML_ERROR_NO_ELEMENTS} 
+   \lineii{XML_ERROR_NO_MEMORY}
+         {XML_ERROR_PARAM_ENTITY_REF}
+   \lineii{XML_ERROR_PARTIAL_CHAR}
+         {XML_ERROR_RECURSIVE_ENTITY_REF}
+   \lineii{XML_ERROR_SYNTAX} 
+ 	{XML_ERROR_TAG_MISMATCH}
+   \lineii{XML_ERROR_UNCLOSED_TOKEN}
+         {XML_ERROR_UNDEFINED_ENTITY}
+   \lineii{XML_ERROR_UNKNOWN_ENCODING}{}
+ \end{tableii}