Re: newb: Lxml Objectify

2007-03-31 Thread johnny
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. --~--~-~--~~~---~--~~

Re: newb: Lxml Objectify

2007-03-30 Thread Malcolm Tredinnick
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

newb: Lxml Objectify

2007-03-30 Thread johnny
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