> Is the Javascript the problem ?
> Note it is impossible to insert the CDATA in the Javascript as then the
> Javscript become invalid due to the nested CDATA. Hence why I used Java.
I see 3 possible ways to achieve this (assuming that the XML scripting
supports CDATA sections, which needs to be confirmed):
* I think scripts can be loaded from registry entries and that plain
text files are supported by the registry. In that case there is no
problem with escaping.
* Instead of escaping the JavaScript using a CDATA section, use
entities, i.e. replace all < by <:
<ws1:claimData><![CDATA["{claimData}"]]></ws1:claimData>
* Escape the JavaScript using a CDATA section, except for the embedded ]]>:
<![CDATA[
...
<ws1:claimData><![CDATA["{claimData}"]]>]]><![CDATA[</ws1:claimData>
...
]]>
Alternatively, if you want something (slightly) more readable:
<![CDATA[
...
<ws1:claimData>]]><![CDATA["{claimData}"]]><![CDATA[</ws1:claimData>
...
]]>
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]