title: Read xml as a txt in python
body: <p>i have following code in <code>python</code> (which only load data from <code>txt</code>):</p>
  
  <pre><code>def main():
      f = open("text.txt", "r" ) //load txt
      a = [] // new array
      for line in f:
          a.append(line.strip()) //append line
  
  main()
  </code></pre>
  
  <p>How can i do this with <code>xml file?</code> <code>f = open("myxml.xml", "r" )</code> doesnt work. I get error : <code>UnicodeDecodeError: 'charmap' codec can't decode byte 0x88 in position 4877: character maps to &lt;undefined&gt;</code></p>