summaryrefslogtreecommitdiffstats
path: root/Doc/lib/xmlsaxhandler.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-12-04 22:04:15 (GMT)
committerFred Drake <fdrake@acm.org>2000-12-04 22:04:15 (GMT)
commite119c8fc614b25034ae45e876d5075597a7e2b67 (patch)
tree8cf01b5f44325f2fd162564c0bb028bdf6aab0cd /Doc/lib/xmlsaxhandler.tex
parent3d5f7e83c74c1c2fa20cf23d38020bbefb69916e (diff)
downloadcpython-e119c8fc614b25034ae45e876d5075597a7e2b67.zip
cpython-e119c8fc614b25034ae45e876d5075597a7e2b67.tar.gz
cpython-e119c8fc614b25034ae45e876d5075597a7e2b67.tar.bz2
Added a comment for ContentHandler.characters() explaining how to migrate
SAX1 code to SAX2, based on bug #123695.
Diffstat (limited to 'Doc/lib/xmlsaxhandler.tex')
-rw-r--r--Doc/lib/xmlsaxhandler.tex8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/lib/xmlsaxhandler.tex b/Doc/lib/xmlsaxhandler.tex
index 77acc3e..bd72fd7 100644
--- a/Doc/lib/xmlsaxhandler.tex
+++ b/Doc/lib/xmlsaxhandler.tex
@@ -255,6 +255,14 @@ appropriate events in the input document:
\var{content} may be a Unicode string or a byte string; the
\code{expat} reader module produces always Unicode strings.
+
+ \strong{Note:} The earlier SAX 1 interface provided by the Python
+ XML Special Interest Group used a more Java-like interface for this
+ method. Since most parsers used from Python did not take advatage
+ of the older interface, the simpler signature was chosen to replace
+ it. To convert old code to the new interface, use \var{content}
+ instead of slicing content with the old \var{offset} and
+ \var{lenght} parameters.
\end{methoddesc}
\begin{methoddesc}[ContentHandler]{ignorableWhitespace}{}