title: junk after document element: line 13, column 2
body: <p>while parsing xml file,i am getting the following traceback</p>
  
  <pre><code>ParseError at /addxml/
  junk after document element: line 13, column 2
  Request Method: POST
  Request URL:    http://localhost:8000/addxml/
  Django Version: 1.3.7
  Exception Type: ParseError
  Exception Value:    
  junk after document element: line 13, column 2
  Exception Location: /root/Samples/DemoApp/DemoApp/views.py in addxml, line 98
  Python Executable:  /usr/bin/python
  </code></pre>
  
  <p>This is my code</p>
  
  <pre><code>if request.POST:
          path = "{0}/app_name/filename.xml".format(settings.PROJECT_ROOT)
          xmlDoc = open(path, 'r')
          xmlDocData = xmlDoc.read()
          xmlDocTree = etree.XML(xmlDocData)
  </code></pre>
  
  <p>below line is giving the error</p>
  
  <pre><code>xmlDocTree = etree.XML(xmlDocData)
  
  
  
  &lt;book&gt;
      &lt;book_id&gt;101&lt;/book_id&gt;
      &lt;book_name&gt;Python&lt;/book_name&gt;
      &lt;publisher_name&gt;Maxwell&lt;/publisher_name&gt;
      &lt;author_id&gt;1002&lt;/author_id&gt;
      &lt;first_name&gt;John&lt;/first_name&gt;
      &lt;last_name&gt;Dezosa&lt;/last_name&gt;
      &lt;email&gt;john@gmail.com&lt;/email&gt;
      &lt;age&gt;34&lt;/age&gt;
    &lt;/book&gt;
    &lt;book&gt;
      &lt;book_id&gt;102&lt;/book_id&gt;
      &lt;book_name&gt;Django&lt;/book_name&gt;
      &lt;publisher_name&gt;Technical&lt;/publisher_name&gt;
      &lt;author_id&gt;1003&lt;/author_id&gt;
      &lt;first_name&gt;Josep&lt;/first_name&gt;
      &lt;last_name&gt;Raj&lt;/last_name&gt;
      &lt;email&gt;joseph@gmail.com&lt;/email&gt;
      &lt;age&gt;29&lt;/age&gt;
    &lt;/book&gt;   
  </code></pre>
  
  <p>Thanks</p>