[EMAIL PROTECTED] wrote:
> <root>
> <subroot>xyz</subroot>
> </root>
>
> rather than:
> root = Element('root')
> subroot = SubElement(root, 'subroot')
> subroot.text = 'xyz'
>
> Was wondering whether this code accomplish that
> root = Element('root')
> subroot = SubElement(root, 'subroot', text='xyz')No, this creates: <root> <subroot text="xyz" /> </root> I believe the text ought to be set in a separate statement. Giovanni Bajo -- http://mail.python.org/mailman/listinfo/python-list
