Extract value from tag python
<p>How can i extract the value of name4 from the following? the example provided is a sample ? how can i do the same with xml.parsers.expat, i am using python 2.4 that doesnt have xml.etree</p>

<pre><code>&lt;test name1="" name2="" name3="0.0.0.0" name4="Linux"&gt;
&lt;/test&gt;
</code></pre>
