1 """Core XML support for Python.
3 This package contains four sub-packages:
5 dom -- The W3C Document Object Model. This supports DOM Level 1 +
8 parsers -- Python wrappers for XML parsers (currently only supports Expat).
10 sax -- The Simple API for XML, developed by XML-Dev, led by David
11 Megginson and ported to Python by Lars Marius Garshol. This
12 supports the SAX 2 API.
14 etree -- The ElementTree XML library. This is a subset of the full
15 ElementTree XML release.
20 __all__
= ["dom", "parsers", "sax", "etree"]
22 # When being checked-out without options, this has the form
23 # "<dollar>Revision: x.y </dollar>"
24 # When exported using -kv, it is "x.y".
25 __version__
= "$Revision$".split()[-2:][0]
28 _MINIMUM_XMLPLUS_VERSION
= (0, 8, 4)
37 v
= _xmlplus
.version_info
38 except AttributeError:
39 # _xmlplus is too old; ignore it
42 if v
>= _MINIMUM_XMLPLUS_VERSION
:
44 _xmlplus
.__path
__.extend(__path__
)
45 sys
.modules
[__name__
] = _xmlplus