XML parsing problem in Python - cannot find findtext
<p>I tried to parse XML with code </p>

<pre><code>import urllib2
from xml.etree import ElementTree

if __name__ == '__main__':
    print 'hello'
    result = urllib2.urlopen('http://localhost/conf.xml').read()
    xml = ElementTree.fromstring(result)
    print result
    print xml.findtext('.//type')
</code></pre>

<p>When I print resut I get all xml file and that is ok, but last line ( xml.findtext) always returns None ( I have tag with type and value mstp ). Can anybody help me with this ?
I lloked at StackOverflow </p>

<p><a href="http://stackoverflow.com/questions/4556924/how-to-parse-xml-in-python-on-google-app-engine">How to parse xml in Python on Google App Engine</a> but I dont get results with (.//type ).</p>

<p>There is xml file</p>

<pre><code>&lt;router&gt;
  &lt;datalink
    type="mstp"
    network="13"
    mac="18"
    hopcount="8"&gt;
    &lt;mqueue
      name="/mstp1"
      msgnum="10"
      msgsize="768"
    /&gt;
    &lt;mstp
      port="/dev/ttySx"
      baud="9600|19200|38400|76800"
      Nmax_info_frames="1+"
      Nmax_master="127-"
      Npoll="50"
      Nretry_token="1"
      Nmin_octets="4"
      Tframe_abort="60-100"
      Tframe_gap="20"
      Tno_token="500"
      Tpostdrive="15"
      Treply_delay="250"
      Treply_timeout="255-300"
      Troff="29-40"
      Tslot="10"
      Tturnaround="40"
      Tusage_delay="15"
      Tusage_timeout="20-100"
    /&gt;
  &lt;/datalink&gt;
  &lt;datalink
    type="bip"
    network="12"
    mac="192.168.0.146:47808"
    hopcount="8"
    &gt;
    &lt;mqueue
      name="/bip1"
      msgnum="10"
      msgsize="2048"
    /&gt;
    &lt;bip
      bbmd="address|self|none"
      bmask="bmask"
    &gt;
      &lt;bbmd
    edit="yes|no"&gt; &lt;!-- dozvoljeno menjanje tabele --&gt;
    &lt;bdt address="192.168.0.131:0xBAC0:192.168.0.255"/&gt; &lt;!-- adresa:port:bmask --&gt;
    &lt;bdt address="192.168.0.157:0xBAC0:192.168.0.255"/&gt;
      &lt;/bbmd&gt;
    &lt;/bip&gt;
  &lt;/datalink&gt;
  &lt;network
    unavailable="90%"
    available="40%"
    hop-dec="1"&gt;
    &lt;mqueue
      name="/network"
      msgnum="40"
      msgsize="2048"
    /&gt;
    &lt;!--  --&gt;
    &lt;hrpolicy
      general="ignore|activate|performance|demand"
      performance="num"
      conntime="num"
    /&gt;
  &lt;/network&gt;
  &lt;application&gt;
    &lt;mqueue
      name="/application"
      msgnum="10"
      msgsize="2048"
    /&gt;
  &lt;/application&gt;
&lt;/router&gt;
</code></pre>
