home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Programming / Python2 / Lib / Python2.0 / xml / __init__.py
Encoding:
Python Source  |  2000-10-25  |  876 b   |  40 lines

  1. """Core XML support for Python.
  2.  
  3. This package contains three sub-packages:
  4.  
  5. dom -- The W3C Document Object Model.  This supports DOM Level 1 +
  6.        Namespaces.
  7.  
  8. parsers -- Python wrappers for XML parsers (currently only supports Expat).
  9.  
  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.
  13. """
  14.  
  15.  
  16. __all__ = ["dom", "parsers", "sax"]
  17.  
  18. __version__ = "$Revision: 1.6 $"[1:-1].split()[1]
  19.  
  20.  
  21. _MINIMUM_XMLPLUS_VERSION = (0, 6, 1)
  22.  
  23.  
  24. try:
  25.     import _xmlplus
  26. except ImportError:
  27.     pass
  28. else:
  29.     try:
  30.         v = _xmlplus.version_info
  31.     except AttributeError:
  32.         # _xmlplue is too old; ignore it
  33.         pass
  34.     else:
  35.         if v >= _MINIMUM_XMLPLUS_VERSION:
  36.             import sys
  37.             sys.modules[__name__] = _xmlplus
  38.         else:
  39.             del v
  40.