Note that there are some explanatory texts on larger screens.

plurals
  1. POcheck my xml response
    primarykey
    data
    text
    <p>Can someone check a xml reply string. User said it is not XML compatible and has bad header. When I do a view source, I see this</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt; &lt;response&gt;&lt;task_no_added&gt;54&lt;/task_no_added&gt;&lt;errorMessage&gt;&lt;/errorMessage&gt;&lt;/response&gt; </code></pre> <p><a href="http://itpscan.info/XML/add_item.php" rel="nofollow">http://itpscan.info/XML/add_item.php</a></p> <p>Here is header info found in firebug...</p> <pre><code>Response Headersview source Date Sun, 03 Oct 2010 22:50:03 GMT Server Apache mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 X-Powered-By PHP/5.2.13 Keep-Alive timeout=5, max=100 Connection Keep-Alive Transfer-Encoding chunked Content-Type text/html Request Headersview source Host itpscan.info User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language en-us,en;q=0.5 Accept-Encoding gzip,deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive 115 Connection keep-alive Referer http://xxxxxx.info/XML/add_item.php </code></pre> <p>Addition: I tried adding a xml header, we will see if that works now...</p> <pre><code>header ("Content-Type:text/xml"); $xml_writer = new XMLWriter(); $xml_writer-&gt;openMemory(); $xml_writer-&gt;startDocument('1.0', 'UTF-8', 'yes'); $xml_writer-&gt;startElement('response'); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload