I have an etree.Element
that basically just looks like <Root></Root>
.
I want to insert a bunch of children elements which come from children = dicttoxml(dict, root=False)
.
The latter gives me a number of elements without a parent, so basically doing print children
gives me this:
<Child1></Child1>
<Child2></Child2>
<Child3></Child3>
<Child4></Child4>
I want to insert children
into my root etree.Element
so, this:
<Root>
<Child1></Child1>
<Child2></Child2>
<Child3></Child3>
<Child4></Child4>
</Root>