[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I would like to parse CDATA !



   Hi,


   I'm consuming a web service with HTTPAPI.


   The web service response is a quite long XML flow like this :


   <?xml version="1.0" ?>

   <S:Envelope
   xmlns:S="http://schemas.xmlsoap.org/soap/envelope/";><S:Body><construct
   ionOutput xmlns="http://drc99.euronautical.com/";>

   &lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;
   ?&gt;&#xD;

   &lt;drcresp version=&quot;1.0&quot; reqid=&quot;tstaru&quot;&gt;&#xD;

   &lt;constructed&gt;&#xD;

   &lt;inp&gt;&#xD;

   &lt;dept type=&quot;icao&quot;&gt;ORY&lt;/dept&gt;&#xD;

   &lt;dest type=&quot;icao&quot;&gt;TLS&lt;/dest&gt;&#xD;

   etc ..


   If I replace &lt ; &quot ; etc .. by the right signs, the result is :

   <?xml version="1.0" ?>

   <S:Envelope
   xmlns:S="http://schemas.xmlsoap.org/soap/envelope/";><S:Body><construct
   ionOutput xmlns="http://drc99.euronautical.com/";>

   <?xml version= `'1.0'' encoding=''ISO-8859-1'' ?>

   <drcresp version=''1.0'' reqid=''tstaru''>

   <constructed>

   <inp>

   <dept type=''icao''>ORY</dept>

   <dest type=`'icao''>TLS</dest>

   etc ..


   All the text constructed as CDATA is, in fact, true XML.


   Is there a solution to force the API to parse it ?


   May I have help ?


   In addition, is it possible to make "http_XmlStripCRLF(*ON/*OFF)"

   able  to manage &#xD


   Best regards


   Alain RUAS

   Technical Manager

   (33) 562 747 500
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------