Python XML parse issues
<p>Currently trying to parse some XML using python, so far I've managed to get the name of the tag however  I can't figure out how to get the data from inside this.</p>

<pre><code> &lt;Fragment name="Located At"&gt;Sector 121212&lt;/Fragment&gt;
</code></pre>

<p>The above is an example of the XML file, I can get the "Located At" part out but not the "Sector 165658" I am currently using the following:</p>

<pre><code>xmldoc = minidom.parse('file.xml')
itemlist = xmldoc.getElementsByTagName('Fragment')
for items in itemlist:
print (items.attributes['name'].value)
</code></pre>

<p>I can't for the life of me remember that the "name" for the section is I feel like this is going to be a simple answer and I'm going to look like an idiot but we shall see.</p>

<p>According to the <a href="https://docs.python.org/2/library/xml.dom.minidom.html" rel="nofollow"><code>minidom</code> docs</a>, it looks like <code>.childNodes</code> might be the thing you're looking for.</p>

python xml python-2.7