[lxml-dev] Parsing Received XML: Getting Childs and Assign
Ram Peters
rampeters at gmail.com
Fri Apr 6 21:33:45 CEST 2007
<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 to parse this xml received from a client using lxml?
I will be using lxml objectify. First I need to get first child (This
is where I am stuck.) and assign it to the python model. Get second
child and assign it to the python model, so on. I looked at the
documentation, it's kind of hard to grasp for a newb.
Thank you.
More information about the lxml-dev
mailing list