title: Convert XML to python objects using lxml
body: <p>I'm trying to use the lxml library to parse an XML file...what I want is to use XML as the datasource, but still maintain the normal Django-way of interactive with the resulting objects...from the docs, I can see that <a href="http://codespeak.net/lxml/objectify.html" rel="nofollow noreferrer">lxml.objectify</a> is what I'm suppossed to use, but I don't know how to proceed after: <code>list = objectify.parse('myfile.xml')</code></p>
  
  <p>Any help will be very much appreciated. Thanks.</p>
  
  <p>A sample of the file (has about 100+ records) is this:</p>
  
  <pre><code>&lt;store&gt;
     &lt;book&gt;
        &lt;publisher&gt;Hodder &amp;...&lt;/publisher&gt;
        &lt;isbn&gt;345123890&lt;/isbn&gt;
        &lt;author&gt;King&lt;/author&gt;
        &lt;comments&gt;
           &lt;comment rank='1'&gt;Interesting&lt;/comment&gt;
        &lt;comments&gt;
        &lt;pages&gt;200&lt;/pages&gt;
     &lt;/book&gt;
     &lt;book&gt;
        &lt;publisher&gt;Penguin Books&lt;/publisher&gt;
        &lt;isbn&gt;9011238XX&lt;/isbn&gt;
        &lt;author&gt;Armstrong&lt;/author&gt;
        &lt;comments /&gt;
        &lt;pages&gt;150&lt;/pages&gt;
     &lt;/book&gt;
  &lt;/store&gt;
  </code></pre>
  
  <p>From this, I want to do the following (something just as easy to write as <code>Books.objects.all()</code> and <code>Books.object.get_object_or_404(isbn=selected) is most preferred )</code>:</p>
  
  <ol>
  <li>Display a list of all books with their respective attributes</li>
  <li>Enable viewing of further details of a book by selecting it from the list</li>
  </ol>