title: parsing xml file in python - no element found
body: <p>I'm a python beginner.  </p>
  
  <p>I want to be able to pick values of certain elements in an xml sheet. Below is what my xml sheet looks like:</p>
  
  <pre><code>  &lt;TempFolder&gt;D:\Mooniology\DiSecTemp\160708_M02091_0202_000000000-APC99&lt;/TempFolder&gt;
    &lt;AnalysisFolder&gt;D:\Mooniology\MiSeqAnalysis\160708_M0209831_0202_000000000-APC99&lt;/AnalysisFolder&gt;
    &lt;RunStartDate&gt;160708&lt;/RunStartDate&gt;
    &lt;MostRecentWashType&gt;PostRun&lt;/MostRecentWashType&gt;
    &lt;RecipeFolder&gt;D:\Mooniology\MiSeq Control Software\CustomRecipe&lt;/RecipeFolder&gt;
    &lt;ILMNOnlyRecipeFolder&gt;C:\Mooniology\MiSeq Control Software\Recipe&lt;/ILMNOnlyRecipeFolder&gt;
    &lt;SampleSheetName&gt;20160708 ALK Amplicon NGS cDNA synthesis kit comparison&lt;/SampleSheetName&gt;
    &lt;SampleSheetFolder&gt;Q:\GNO MiSeq\Jaya&lt;/SampleSheetFolder&gt;
    &lt;ManifestFolder&gt;Q:\GNO MiSeq&lt;/ManifestFolder&gt;
    &lt;OutputFolder&gt;\\rpbns4-lab\vol10\RMSdisect\160708_M02091_0202_000000000-APC99&lt;/OutputFolder&gt;
    &lt;FocusMethod&gt;AutoFocus&lt;/FocusMethod&gt;
    &lt;SurfaceToScan&gt;Both&lt;/SurfaceToScan&gt;
    &lt;SaveFocusImages&gt;true&lt;/SaveFocusImages&gt;
    &lt;SaveScanImages&gt;true&lt;/SaveScanImages&gt;
  </code></pre>
  
  <p>And by "picking values", suppose I want the value of the element called <code>TempFolder</code>.  I want the script spit out <code>D:\Mooniology\DiSecTemp\160708_M02091_0202_000000000-APC99</code>
  Below is the code I'm using to attempt to scan it:</p>
  
  <pre><code>#!/usr/bin/python2.7
  
  import xml.etree.ElementTree as ET
  tree = ET.parse('online.xml')
  root = tree.getroot()
  for child in root:
      print(child.tag, child.attrib)
  </code></pre>
  
  <p>Every time i run this code, no matter how i modify it (from researching google), the end result is always the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "./mindo.py", line 5, in &lt;module&gt;
      tree = ET.parse('online.xml')
    File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1182, in parse
      tree.parse(source, parser)
    File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 657, in parse
      self._root = parser.close()
    File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1654, in close
      self._raiseerror(v)
    File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
      raise err
  xml.etree.ElementTree.ParseError: no element found: line 75, column 0
  </code></pre>
  
  <p>I suspected that the issue could be the xml file I'm using. But since I'm new to python, i have to presume its my code.  </p>