Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBossWS] - Forcing CDATA tags to be output sometimes
 on some tags from

scott.stark@jboss.org

2007-07-20


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066050#4066050

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066050
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.