File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes How can I restrict converting the < > into special characters for CDATA? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How can I restrict converting the < > into special characters for CDATA?" Watch "How can I restrict converting the < > into special characters for CDATA?" New topic
Author

How can I restrict converting the < > into special characters for CDATA?

Sujay Patil
Greenhorn

Joined: May 16, 2005
Posts: 2
Hello,

I am calling a Web Service with CDATA elements. I am facing issue with passing objects like shown below,

<![CDATA[<name>ABC</name>]]>

It is getting converted in to below string while passing (just without - ),

&-lt;![CDATA[<name>ABC</name>]]&-gt;

How can I restrict converting the < > for CDATA? I want to pass the data with < > only. The conversion of these characters is creating issue while receiving at the Web Service. I don't have control over the service. I have to
handle this at the client level. I know it should work, but it is not working for my execution. I am using JAXB for client.

- Sujay
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I restrict converting the < > into special characters for CDATA?