title: Errors parsing XML using simplexml on my 1&1 webserver but not local EasyPHP server?
body: <p>I'm new to php and web coding so any help would be great.</p>
  
  <p>I'm having some issue with the transmission of an xml string between an iOS app and my webserver.</p>
  
  <p>When sending the xml request I get a response starting with:</p>
  
  <pre><code>&lt;b&gt;Warning&lt;/b&gt;:  simplexml_load_string() [&lt;a href='function.simplexml-load-string'&gt;function.simplexml-load-string&lt;/a&gt;]: Entity: line 1: parser error : String not started expecting ' or &amp;quot; 
  &lt;b&gt;Warning&lt;/b&gt;:  simplexml_load_string() [&lt;a href='function.simplexml-load-string'&gt;function.simplexml-load-string&lt;/a&gt;]: &amp;lt;?xml version=\&amp;quot;1.0\&amp;quot;?&amp;gt; in 
  &lt;b&gt;Warning&lt;/b&gt;:  simplexml_load_string() [&lt;a href='function.simplexml-load-string'&gt;function.simplexml-load-string&lt;/a&gt;]: Entity: line 1: parser error : Malformed declaration expecting version in
  </code></pre>
  
  <p>I use the Google GDataXMLNode from the Google Data API to produce the XML on the iOS app.
  I then send the xml using a post HTTP request.<br>
  The server uses php with:</p>
  
  <pre><code>$xml = simplexml_load_string($xml_string);
  </code></pre>
  
  <p>I believe the issue is with the xml string and the " marks around the version number such as </p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  </code></pre>
  
  <p>being sent as:</p>
  
  <pre><code> &lt;?xml version=\"1.0\"?&gt;
  </code></pre>
  
  <p>The strange thing is the code works fine on my local EasyPHP server, I only have issues when running it on my 1&amp;1 webserver.  Maybe it is the version of simplexml and php on the server? </p>
  
  <p>How can I fix this, I believe I don't have the ability to alter the php version on the 1&amp;1 webserver.
  Would it be better to use a different library to produce the xml, (I am looping through an array to produce it)</p>