Thank you for the clarification Stefan, I understand.
--
http://mail.python.org/mailman/listinfo/python-list
Emanuele D'Arrigo wrote:
> Hi everybody, I just tried the following:
>
import xml.etree.ElementTree as etree
e = etree.fromstring('>>> xmlns:ans="anotherNamespace" ans:anotherAttr="2"/>')
e.getchildren()[0].attrib
> {'anAttr': '1', '{anotherNamespace}anotherAttr': '2'}
>
> Noti
Hi everybody, I just tried the following:
>>> import xml.etree.ElementTree as etree
>>> e = etree.fromstring('>> xmlns:ans="anotherNamespace">>> ans:anotherAttr="2"/>')
>>> e.getchildren()[0].attrib
{'anAttr': '1', '{anotherNamespace}anotherAttr': '2'}
Notice the lack of namespace before the attr