Subversion Repositories XServices

Rev

View as "text/plain" | Blame | Last modification | View Log | Download | RSS feed

<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE section [
<!ENTITY % myent SYSTEM "../entities.ent">
%myent;
]>
<section xmlns="http://docbook.org/ns/docbook" version="5.0"
        xmlns:xi="http://www.w3.org/2001/XInclude">
        <title>wrapInCDATA</title>
        <para>Simply wraps any data fragment into &lt;![CDATA[ ... ]]&gt; section. This can be useful if you
        want to preserve indentation or line breaks.
        </para>
        <para>
        Sample request:
<programlisting language="xml"><![CDATA[
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:ws="http://ws.xservices.brutex.net">
   <soapenv:Header/>
   <soapenv:Body>
      <ws:wrapInCDATA>
         <data>Hello World, here is some &lt;xml&gt; data</data>
      </ws:wrapInCDATA>
   </soapenv:Body>
</soapenv:Envelope>
]]></programlisting>
        Sample response:
        <programlisting language="xml"><![CDATA[
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns2:wrapInCDATAResponse xmlns:ns2="http://ws.xservices.brutex.net">
         <return>&lt;![CDATA[Hello World, here is some &lt;xml> data]]&gt;</return>
      </ns2:wrapInCDATAResponse>
   </soap:Body>
</soap:Envelope>
]]></programlisting>
</para>
</section>

Generated by GNU Enscript 1.6.5.90.