Commit f08cbb17 authored by Fred Drake's avatar Fred Drake

Added information on the ExternalEntityParserCreate() method.

parent 1e0611b2
...@@ -80,15 +80,17 @@ http://default-namespace.org/ root ...@@ -80,15 +80,17 @@ http://default-namespace.org/ root
http://www.python.org/ns/ elem1 http://www.python.org/ns/ elem1
elem2 elem2
\end{verbatim} \end{verbatim}
\end{funcdesc} \end{funcdesc}
\subsection{XMLParser Objects \label{xmlparser-objects}}
\class{xmlparser} objects have the following methods: \class{xmlparser} objects have the following methods:
\begin{methoddesc}[xmlparser]{Parse}{data\optional{, isfinal}} \begin{methoddesc}[xmlparser]{Parse}{data\optional{, isfinal}}
Parses the contents of the string \var{data}, calling the appropriate Parses the contents of the string \var{data}, calling the appropriate
handler functions to process the parsed data. \var{isfinal} must be 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 true on the final call to this method. \var{data} can be the empty
string at any time. string at any time.
\end{methoddesc} \end{methoddesc}
...@@ -112,6 +114,14 @@ Returns a string containing the base set by a previous call to ...@@ -112,6 +114,14 @@ Returns a string containing the base set by a previous call to
\method{SetBase()} hasn't been called. \method{SetBase()} hasn't been called.
\end{methoddesc} \end{methoddesc}
\begin{methoddesc}[xmlparser]{ExternalEntityParserCreate}{context\optional{,
encoding}}
Create a ``child'' parser which can be used to parse an external
parsed entity referred to by content parsed by the parent parser. The
\var{content} parameter should be the string passed to the
\method{ExternalEntityRefHandler()} handler function, described below.
\end{methoddesc}
\class{xmlparser} objects have the following attributes: \class{xmlparser} objects have the following attributes:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment