[EMAIL PROTECTED] wrote:
> On May 11, 12:22 pm, [EMAIL PROTECTED] wrote:
>> On May 11, 12:05 am, [EMAIL PROTECTED] wrote:
>>
>>
>>
>>
>>
>>> #!/usr/bin/env python
>>> from elementtree import ElementTree as Element
>>> tree = et.parse("testxml.xml")
>>> for t in tree.getiterator("SERVICEPARAMETER"):
>>>         if t.get("Semantics") == "localId":
>>>                 t.set("Semantics", "dataPackageID")
>>> tree.write("output.xml")
>>>                 Hi,
>>>                      For the above code to work elementtree is
>>> imported in first line ,but when running it says :
>>> ImportError: No module named elementtree.ElementTree
>>> Does thie module exists as default or a patch is needed?
>>>                                                 Thanks
>> http://groups.google.com/group/comp.lang.python/browse_frm/thread/e09...
>>
>> Read carefully.- Hide quoted text -
>>
>> - Show quoted text -
> 
> The commands are given in that link are more so for a linux system .I
> am developing in windows.how should i go about to make it work

As said: read carefully.

Stefan
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to