Lines Matching full:expat
1 :mod:`xml.parsers.expat` --- Fast XML parsing using Expat
4 .. module:: xml.parsers.expat
5 :synopsis: An interface to the Expat non-validating XML parser.
26 .. index:: single: Expat
28 The :mod:`xml.parsers.expat` module is a Python interface to the Expat
38 This module uses the :mod:`pyexpat` module to provide access to the Expat
46 The exception raised when Expat reports an error. See section
47 :ref:`expaterror-objects` for more information on interpreting Expat errors.
59 The :mod:`xml.parsers.expat` module contains two functions:
70 must be a string naming the encoding used by the XML data. Expat doesn't
76 Expat can optionally do XML namespace processing for you, enabled by providing a
107 Due to limitations in the ``Expat`` library used by :mod:`pyexpat`,
115 `The Expat XML Parser <http://www.libexpat.org/>`_
116 Home page of the Expat project.
184 Calling this with a true value for *flag* (the default) will cause Expat to call
213 content returned by Expat to avoid multiple calls to the
215 performance substantially since Expat normally breaks character data into chunks
250 :exc:`xml.parsers.expat.ExpatError` exception.
311 Expat version 1.95.0 or newer.
316 Called when Expat begins parsing the document type declaration (``<!DOCTYPE
320 contains and internal document declaration subset. This requires Expat version
326 Called when Expat is done parsing the document type declaration. This requires
327 Expat version 1.2 or newer.
347 true. This requires Expat version 1.95.0 or newer.
381 version 1.2 of the Expat library; for more recent versions, use
382 :attr:`EntityDeclHandler` instead. (The underlying function in the Expat
395 Expat library.
497 Expat's internal error number for the specific error. The
498 :data:`errors.messages <xml.parsers.expat.errors.messages>` dictionary maps
499 these error numbers to Expat's error messages. For example::
501 from xml.parsers.expat import ParserCreate, ExpatError, errors
509 The :mod:`~xml.parsers.expat.errors` module also provides error message
510 constants and a dictionary :data:`~xml.parsers.expat.errors.codes` mapping
533 import xml.parsers.expat
543 p = xml.parsers.expat.ParserCreate()
573 .. module:: xml.parsers.expat.model
582 :mod:`xml.parsers.expat.model` module. These constants can be collected in two
651 Expat error constants
654 .. module:: xml.parsers.expat.errors
656 The following constants are provided in the :mod:`xml.parsers.expat.errors`
733 Expat was not able to allocate memory internally.
775 The document encoding is not supported by Expat.
802 Expat was configured without DTD support. This should never be reported by a
803 standard build of the :mod:`xml.parsers.expat` module.