<Library> <DVD id="1"> <title>Breakfast at Tiffany's</title> <format>Movie</format> <genre>Classic</genre> </DVD>
<DVD id="2"> <title>Borat</title> <format>Movie</format> <genre>Comedy</genre> </DVD> </Library> How do you represent DVD id=1 and it's elements, and DVD id=2 and it's elements as child of root "Library"? Like this:? from lxml import etree from lxml import objectify root = objectify.Element("Library") child[1] = objectify.Element("DVD", id="1") root.new_child = child[1] Thank you -- http://mail.python.org/mailman/listinfo/python-list