title: Parsing XML with Python
body: <p>I have several large .xml files. I want to parse out the files to do several things.  </p>
  
  <p>I want to pull out only:</p>
  
  <ul>
  <li>XML-/title1 and save it to list A (for example)</li>
  <li>XML-/title2 and save it to list B</li>
  <li>XML-/title3 and save it to list C</li>
  <li>etc, etc </li>
  </ul>
  
  <p>Using Python 2.x which library would be best to import/use. How would I set this up?
  Any Suggestions?</p>
  
  <p>For Example:</p>
  
  <pre><code> &lt;PubmedArticle&gt;
      &lt;MedlineCitation Owner="NLM" Status="MEDLINE"&gt;
          &lt;PMID Version="1"&gt;8981971&lt;/PMID&gt;
          &lt;Article PubModel="Print"&gt;
              &lt;Journal&gt;
                  &lt;ISSN IssnType="Print"&gt;0002-9297&lt;/ISSN&gt;
                  &lt;JournalIssue CitedMedium="Print"&gt;
                      &lt;Volume&gt;60&lt;/Volume&gt;
                      &lt;Issue&gt;1&lt;/Issue&gt;
                      &lt;PubDate&gt;
                          &lt;Year&gt;1997&lt;/Year&gt;
                          &lt;Month&gt;Jan&lt;/Month&gt;
                      &lt;/PubDate&gt;
                  &lt;/JournalIssue&gt;
                  &lt;Title&gt;American journal of human genetics&lt;/Title&gt;
                  &lt;ISOAbbreviation&gt;Am. J. Hum. Genet.&lt;/ISOAbbreviation&gt;
              &lt;/Journal&gt;
              &lt;ArticleTitle&gt;mtDNA and Y chromosome-specific polymorphisms in modern Ojibwa: implications about the origin of their gene pool.&lt;/ArticleTitle&gt;
              &lt;Pagination&gt;
                  &lt;MedlinePgn&gt;241-4&lt;/MedlinePgn&gt;
              &lt;/Pagination&gt;
              &lt;AuthorList CompleteYN="Y"&gt;
                  &lt;Author ValidYN="Y"&gt;
                      &lt;LastName&gt;Scozzari&lt;/LastName&gt;
                      &lt;ForeName&gt;R&lt;/ForeName&gt;
                      &lt;Initials&gt;R&lt;/Initials&gt;
                  &lt;/Author&gt;
              &lt;/AuthorList&gt;
          &lt;MeshHeadingList&gt;
              &lt;MeshHeading&gt;
                  &lt;DescriptorName MajorTopicYN="N"&gt;Alleles&lt;/DescriptorName&gt;
              &lt;/MeshHeading&gt;
              &lt;MeshHeading&gt;
                  &lt;DescriptorName MajorTopicYN="Y"&gt;Y Chromosome&lt;/DescriptorName&gt;
              &lt;/MeshHeading&gt;
          &lt;/MeshHeadingList&gt;
          &lt;OtherID Source="NLM"&gt;PMC1712541&lt;/OtherID&gt;
      &lt;/MedlineCitation&gt;
  &lt;/PubmedArticle&gt;
  </code></pre>