title: In Python - Parsing a response xml and finding a specific text vaule
body: <p>I'm new to python and I'm having a particularly difficult time working with xml and python. The situation I have is this, I'm trying to count the number of times a word appears in an xml document. Simple enough, but the xml document is a response from a server. Is it possible to do this without writing to a file? It would be great trying to do it from memory.</p>
  
  <p>Here is a sample xml code:</p>
  
  <pre><code>&lt;xml&gt;
    &lt;title&gt;Info&lt;/title&gt;
      &lt;foo&gt;aldfj&lt;/foo&gt;
        &lt;data&gt;Text I want to count&lt;/data&gt;
  &lt;/xml&gt;
  </code></pre>
  
  <p>Here is what I have in python</p>
  
  <pre><code>import urllib2
  import StringIO
  import xml.dom.minidom
  from xml.etree.ElementTree import parse
  usock = urllib.urlopen('http://www.example.com/file.xml') 
  xmldoc = minidom.parse(usock)
  print xmldoc.toxml()
  </code></pre>
  
  <p>Past This point I have tried using StringIO, ElementTree, and minidom to no success and I have gotten to a point where I'm not sure what else to do.</p>
  
  <p>Any help would be greatly appreciated </p>