I am trying to do this inside Django view. I am new to python, I
thought someone might have used lxml to process and create xml
documents in Django. I looked at the documentation, but for newb, I
need to see an examle like this.
Thank you.
--~--~-~--~~~---~--~~
On Sat, 2007-03-31 at 01:45 +, johnny wrote:
>
>
> Breakfast at Tiffany's
> Movie
> Classic
>
>
>
> Borat
> Movie
> Comedy
>
>
>
> 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
> f
Breakfast at Tiffany's
Movie
Classic
Borat
Movie
Comedy
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.Eleme
3 matches
Mail list logo