XML : etree import not working- Python 2.7.5

I'm trying to use elementtree to parse xml but the import is giving me an error.

No module named etree

I've tried :

  from xml.etree import ElementTree as ET    import xml.etree.ElementTree as ET    

I have elementtree downloaded in my python library on mac. Am I missing something?

Thank you

No comments:

Post a Comment