summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-12-23 22:19:05 (GMT)
committerFred Drake <fdrake@acm.org>2000-12-23 22:19:05 (GMT)
commitf08cbb1771f7c9ddd45638c584d0f7c82c54f593 (patch)
treed02a23002d38f67c645ac8b8cdc23bfbc361c865 /Doc/lib
parent1e0611b208d4efec016fcfd621accddb40f3af6a (diff)
downloadcpython-f08cbb1771f7c9ddd45638c584d0f7c82c54f593.zip
cpython-f08cbb1771f7c9ddd45638c584d0f7c82c54f593.tar.gz
cpython-f08cbb1771f7c9ddd45638c584d0f7c82c54f593.tar.bz2
Added information on the ExternalEntityParserCreate() method.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libpyexpat.tex14
1 files changed, 12 insertions, 2 deletions
diff --git a/Doc/lib/libpyexpat.tex b/Doc/lib/libpyexpat.tex
index eb8ccdb..038e555 100644
--- a/Doc/lib/libpyexpat.tex
+++ b/Doc/lib/libpyexpat.tex
@@ -80,15 +80,17 @@ http://default-namespace.org/ root
http://www.python.org/ns/ elem1
elem2
\end{verbatim}
-
\end{funcdesc}
+
+\subsection{XMLParser Objects \label{xmlparser-objects}}
+
\class{xmlparser} objects have the following methods:
\begin{methoddesc}[xmlparser]{Parse}{data\optional{, isfinal}}
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
+true on the final call to this method. \var{data} can be the empty
string at any time.
\end{methoddesc}
@@ -112,6 +114,14 @@ Returns a string containing the base set by a previous call to
\method{SetBase()} hasn't been called.
\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: