problem in ElementTree SubElement
Sbaush <[email protected]>
| Newsgroups | gmane.comp.python.general,gmane.comp.python.xml |
|---|---|
| Message-ID | <[email protected]> |
Hi all.
I would get this element in xml:
<date month="02" day="06" />
I have write this:
date=ET.SubElement(idsreq,"date")
date.set("month",month)
date.set("day",day)
but i get this:
<date day="06" month="02" />
The attributes are not in my order!!
how i can get the attributes in right order???
Thanks all.
--
Sbaush
--
http://mail.python.org/mailman/listinfo/python-list