newb: lxml objectify



<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

.



Relevant Pages

  • Re: DVD on FC4 ?
    ... All steps need to be done as root. ... Now click on Applications / Sound & Video and launch Xine Media Player. ... Load up the DVD into your PC. ... individual files within to /usr/lib/win32 ...
    (Fedora)
  • Re: How to put VS CDs on a DVD ?
    ... > try copying to the root of the DVD itself and then run the installation. ... Component Update disc. ... the root directory of a DVD, the installation proceeds for about 10%, then ...
    (microsoft.public.vsnet.setup)
  • [SLE] Mounting.
    ... I have a cd-writer on hdb sr0, and a DVD ... As root and user I can mount the dvd drive, ... Only as root it works. ...
    (SuSE)
  • Re: [SLE] Memtest and installing 9.3
    ... >> root login name and root password. ... > memtest used to be executable from a boot of the ... > Install DVD. ... readers she has are so crappy they can't read a good dual-layer DVD when my 7 ...
    (SuSE)
  • Re: How to put VS CDs on a DVD ?
    ... > try copying to the root of the DVD itself and then run the installation. ... If I copy the all the subdirectories (Extras, Program Files, Win, etc.) to ...
    (microsoft.public.vsnet.setup)