ElementTree - Why not part of the core?
Fredrik Lundh
fredrik at pythonware.com
Tue Dec 13 03:30:17 EST 2005
doug.bromley at gmail.com wrote:
> ElementTree on the other hand provides incredibly easy access to XML
> elements and works in a more Pythonic way. Why has the API not been
> included in the Python core?
$ svn up
$ make
...
$ python
Python 2.5a0 (#1, Dec 12 2005, 19:26:49)
>>> import xml.etree.ElementTree as ET
>>> root = ET.XML("<message>hello, world!</message>")
>>> root
<Element text at 402f73ac>
>>> root.text
'hello, world!'
http://svn.python.org/view/python/trunk/Lib/xml/etree/
(and it's all your fault ;-)
</F>
More information about the Python-list
mailing list