[XML-SIG] problem in ElementTree SubElement

Sbaush sbaush at gmail.com
Mon Feb 6 18:35:25 CET 2006


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/xml-sig/attachments/20060206/c3128ac5/attachment.htm 


More information about the XML-SIG mailing list