--- /dev/null
+"""Core XML support for Python.\r
+\r
+This package contains four sub-packages:\r
+\r
+dom -- The W3C Document Object Model. This supports DOM Level 1 +\r
+ Namespaces.\r
+\r
+parsers -- Python wrappers for XML parsers (currently only supports Expat).\r
+\r
+sax -- The Simple API for XML, developed by XML-Dev, led by David\r
+ Megginson and ported to Python by Lars Marius Garshol. This\r
+ supports the SAX 2 API.\r
+\r
+etree -- The ElementTree XML library. This is a subset of the full\r
+ ElementTree XML release.\r
+\r
+"""\r
+\r
+\r
+__all__ = ["dom", "parsers", "sax", "etree"]\r
+\r
+_MINIMUM_XMLPLUS_VERSION = (0, 8, 4)\r
+\r
+\r
+try:\r
+ import _xmlplus\r
+except ImportError:\r
+ pass\r
+else:\r
+ try:\r
+ v = _xmlplus.version_info\r
+ except AttributeError:\r
+ # _xmlplus is too old; ignore it\r
+ pass\r
+ else:\r
+ if v >= _MINIMUM_XMLPLUS_VERSION:\r
+ import sys\r
+ _xmlplus.__path__.extend(__path__)\r
+ sys.modules[__name__] = _xmlplus\r
+ else:\r
+ del v\r