PHP Classes

returning XML not complient?

Recommend this page to a friend!

      PHP HTTP protocol client  >  All threads  >  returning XML not complient?  >  (Un) Subscribe thread alerts  
Subject:returning XML not complient?
Summary:After an http request I should get an XML, but it doesn't
Messages:2
Author:Bastiaan Wakkie
Date:2008-12-30 14:26:41
Update:2008-12-30 18:40:33
 

  1. returning XML not complient?   Reply   Report abuse  
Picture of Bastiaan Wakkie Bastiaan Wakkie - 2008-12-30 14:26:41
I am not sure id this is the http.php doing this but here it goes:

We use an autonomy search engine that we query with http.php. The returning xml is somehow incorrect. I needed to alter to the xml:

1) replace all \' into "
2) I missed <![CDATA[" .... "]]> completely

could http.php have stripped this out perhaps?

thanks

  2. Re: returning XML not complient?   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-12-30 18:40:33 - In reply to message 1 from Bastiaan Wakkie
You probably have magic quote settings on. Try changing your php.ini to set magic_quotes_runtime to off .