XML root node attributes

Slafs slafs.e at gmail.com
Tue Nov 17 09:19:54 EST 2009


Hi

I'm little confused about adding attributes to the root node when
creating an XML document.
Can I do this using minidom or something else.
I can't find anything that would fit my needs.

i would like to have something like this:
<?xml ... ?>
<root a="v" b="v2" c="v3">
    <d ... > </d>
   ....
</root>

Please help.

Regards.



More information about the Python-list mailing list