title: Get userData from xml
body: <p>I want to extact   lines from my xml. Here is an example:</p>
  
  <pre><code>&lt;userData code="viPartListRailML" value="1"&gt;
              &lt;partRailML s="0.0000000000000000e+00" id="0"/&gt;
              &lt;partRailML s="2.0000000000000000e+01" id="1"/&gt;
              &lt;partRailML s="9.4137883373059267e+01" id="2"/&gt;
          &lt;/userData&gt;
          &lt;userData code="viBaliseList" value="1"&gt;
          &lt;/userData&gt;
          &lt;userData code="viAxleCounterList" value="1"&gt;
          &lt;/userData&gt;
  </code></pre>
  
  <p>I was trying this code, but it doesnt give back value:</p>
  
  <pre><code>from xml.dom import minidom
  
  mydoc = minidom.parse('N:\SAJAT_MAPPAK\IGYULAVICS\/adhoc\pythonXMLread\probaxml\github_minta.xml')
  items = mydoc.getElementsByTagName('userData')
  # all items data
  print('\nAll item data:')
  for elem in items:
      print(elem.firstChild.data)
  </code></pre>
  
  <p>And the expected result would be like:</p>
  
  <pre><code>&lt;userData code="viPartListRailML" value="1"&gt;&lt;partRailML s="0.0000000000000000e+00" id="0"/&gt;&lt;partRailML s="2.0000000000000000e+01" id="1"/&gt;&lt;partRailML s="9.4137883373059267e+01" id="2"/&gt;&lt;/userData&gt;
  </code></pre>
  
  <p></p>
  
  <p>Can you help me, to find my mistake? </p>