title: 'NoneType' object has no attribute 'data'
body: <p>I am sending a SOAP request to my server and getting the response back. sample of the response string  is shown below:</p>
  
  <pre><code>&lt;?xml version = '1.0' ?&gt;
  &lt;env:Envelope xmlns:env=http:////www.w3.org/2003/05/soap-envelop
  .
  ..
  ..
  &lt;env:Body&gt;
      &lt;epas:get-all-config-resp xmlns:epas="urn:organization:epas:soap"&gt; ^M
  ...
  ...
  &lt;epas:property name="Tom"&gt;12&lt;/epas:property&gt;
  &gt; 
  &gt; &lt;epas:property name="Alice"&gt;34&lt;/epas:property&gt;
  &gt; 
  &gt; &lt;epas:property name="John"&gt;56&lt;/epas:property&gt;
  &gt; 
  &gt; &lt;epas:property name="Danial"&gt;78&lt;/epas:property&gt;
  &gt; 
  &gt; &lt;epas:property name="George"&gt;90&lt;/epas:property&gt;
  &gt; 
  &gt; &lt;epas:property name="Luise"&gt;11&lt;/epas:property&gt;
  
  ...
  ^M
  &lt;/env:Body?
  &lt;/env:Envelop&gt;
  </code></pre>
  
  <p>What I noticed in the response is that there is an extra character shown in the body which is "^M". Not sure if this could be the issue.  Note the ^M shown!
   when I tried parsing the string returned from the server to get the names and values using the code sample:</p>
  
  <pre><code>elements = minidom.parseString(xmldoc).getElementsByTagName("property")      
  myDict = {}
  for element in elements:
    myDict[element.getAttribute('name')] = element.firstChild.data
  </code></pre>
  
  <p>But, I am getting this error: 'NoneType' object has no attribute 'data'. May be its something to do with the "^M" shown on the xml response back! </p>
  
  <p>Any ideas/comments would be appreciated,</p>
  
  <p>Cheers</p>