title: how to extract info in XML from python into list
body: <p>I need to extract a patent document that is an XML file with PYTHON and output it into an adjacency list.</p>
  <pre><code>file = open('abc.txt', mode = 'r', encoding = 'utf-8-sig')
  lines = file.readlines()
  file.close()
  my_dict = {}
  my_list = []
  for line in lines:
      line = line.split(',')
      line = [i.strip() for i in line]
  </code></pre>
  <p>I have tried this but it does not seem right</p>