|
Project Information
Members
Featured
Downloads
Links
|
ElementTree is a Python library for XML processing. Considered as best-of-breed, its core modules have been added to the CPython 2.5 standard library. Jython development efforts currently target a 2.5 version that would match CPython 2.5 language features and libraries. This project provides a port of ElementTree for this release of Jython. News
ImplementationThe project currently emulates partially the API of the expat parser that is used in the CPython ElementTree. This strategy allows the support of multiple versions of ElementTree without any change to their sources. The main target versions are:
Jython-elementtree fares well against standard ElementTree test suites : 1 failure out of 395 tests. InstallationUpdate. The ElementTree library is now a standard component of Jython. No extra step is required beyond the installation of Jython 2.5 (beta) itself to get ElementTree 2.6. The installation instructions for ElementTree 1.3 (alpha 3) are still valid. (OBSOLETE) To install ElementTree 1.2.6 for Jython as a standard library, type: $ svn checkout http://jython-elementtree.googlecode.com/svn/trunk elementtree $ cd elementtree $ jython setup.py install --stdlib Optionally, to install ElementTree 1.3, as a third-party library, type: $ svn checkout http://svn.effbot.org/public/elementtree-1.3 elementtree-1.3 $ cd elementtree-1.3 $ jython setup.py install UsageTo use ElementTree 1.2.6, type in the Jython console: >>> from xml.etree import ElementTree or to use the 1.3 version: >>> from elementtree import ElementTree |