is elementTree really a part of python 2.6?

Godson Gera godson.g at gmail.com
Thu Oct 28 04:36:24 EDT 2010


do the following

import xml.etree

that imports the elementtree library in 2.5 it self so you sure can do that
in 2.6

http://docs.python.org/library/xml.etree.elementtree.html

-- 
Thanks & Regards,
Godson Gera
Python Consultant
India<http://blog.godson.in/2010/09/how-to-make-python-xmlrpclib-client.html>

On Thu, Oct 28, 2010 at 1:53 PM, hackingKK <hackingkk at gmail.com> wrote:

>
> Hello all,
> Some days back I had asked a few questions about parsing xml files using
> python.
> I have tryed dom.minidom module but I did not like the prittyPrint way of
> writing nodes.
> There were many other things I did not quite like about dom.minidom, so now
> trying to use elementTree.
> But to my surprise, I could not import xml.elementtree in my default python
> 2.6 setup.
> is it possible that I have broken some thing?
> I had to later on do an easy_install for elementree.
> But I hear that elementtree is a part of python?
> So has my import gone wrong?  or is some thing broken in my python setup?
>
> happy hacking.
> Krishnakant.
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Thanks & Regards,
Godson Gera
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20101028/9c025dad/attachment.html>


More information about the Python-list mailing list