title: iOS: TouchXML xmlReadMemory VS xmlParseMemory
body: <p>I tried to use 2 different implementations of TouchXML, one provided with SudzC and the other from <a href="https://github.com/TouchCode/TouchXML" rel="nofollow">TouchXML github repo</a>. 
  There is a little difference between them, consisting in the initialization of the CXMLDocument:</p>
  
  <p><strong>GitHub:</strong></p>
  
  <pre><code>CFStringEncoding cfenc = CFStringConvertNSStringEncodingToEncoding(encoding);
  CFStringRef cfencstr = CFStringConvertEncodingToIANACharSetName(cfenc);
  const char *enc = CFStringGetCStringPtr(cfencstr, 0);
  theDoc = htmlReadMemory([inData bytes], [inData length], NULL, enc, HTML_PARSE_NONET | HTML_PARSE_NOBLANKS | HTML_PARSE_NOWARNING);
  </code></pre>
  
  <p><strong>SudzC version</strong></p>
  
  <pre><code>theDoc = xmlParseMemory([inData bytes], [inData length]);
  </code></pre>
  
  <p>The problem is in the output, cause when querying the rootElement of the GitHub version it returns "soap:Envelope" and SudzC version returns "Envelope".</p>
  
  <p>Could you please explain me why do I get different versions of output and how could I obtain in the GitHub version the output without "soap:" prefix?</p>
  
  <p>Thanks in advance. I hope I have given enough information.</p>