0 Replies Latest reply on Jul 20, 2007 3:39 AM by roger_pearse

    Forcing CDATA tags to be output sometimes on some tags from

    roger_pearse

      Hello,

      I'm porting a web service to JBossWs and I've run into a backward compatibility issue.

      In the soap request, there is an optional tag to say "we want CDATA tags around the output fields in the response". So in the XML that appears back in the client it might be

      <mytag>textualstuffwithembeddedwhoknowswhat</mytag>

      or

      <mytag><![CDATA[textualstuffwithembeddedwhoknowswhat]]></mytag>


      I can't work out how to force the CDATA's to appear. If I add them to the value of the field, they get turned into this:

      <mytag><![CDATA[textualstuffwithembeddedwhoknowswhat]]></mytag>


      Can anyone tell me how to do this?

      Many thanks indeed!

      Roger Pearse