and \function{UnparsedEntityDeclHandler} functions.
\end{methoddesc}
\begin{methoddesc}{GetBase}{}
Returns a string containing the base set by a previous call to
\method{SetBase()}, or \code{None} if
\method{SetBase()} hasn't been called.
\end{methoddesc}
\class{xmlparser} objects have the following attributes, containing
values relating to the most recent error encountered by an
\class{xmlparser} object. These attributes will only have correct
values once a call to \method{Parse()} or \method{ParseFile()}
has raised a \exception{pyexpat.error} exception.
\begin{datadesc}{ErrorByteIndex}
Byte index at which an error occurred.
\end{datadesc}
\begin{datadesc}{ErrorCode}
Numeric code specifying the problem. This value can be passed to the
\function{ErrorString()} function, or compared to one of the constants
defined in the \module{pyexpat.errors} submodule.
\end{datadesc}
\begin{datadesc}{ErrorColumnNumber}
Column number at which an error occurred.
\end{datadesc}
\begin{datadesc}{ErrorLineNumber}
Line number at which an error occurred.
\end{datadesc}
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.