aspose file tools*
The moose likes XML and Related Technologies and the fly likes Transforming      >><<text message>><<  this kind of message into CDATA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Transforming      >><<text message>><<  this kind of message into CDATA" Watch "Transforming      >><<text message>><<  this kind of message into CDATA" New topic
Author

Transforming >><<text message>><< this kind of message into CDATA

Vaijan Hundlekar
Greenhorn

Joined: Mar 23, 2009
Posts: 6
In one of our program we transfer one xml format to other xml using a xslt and sax parser.
but while tranfering data from one of the node if the message is in >><<text message>><<
this format it takes it as <!CDATA[&amp;gt;&amp;gt;&amp;lt;&amp;lt;text message&amp;gt;&amp;gt;&amp;lt;&amp;lt;]]>

something like this, i think the xslt transformer or sax parser converts > & < characters.
Now the problem is we dont want it to take it as CDATA since this tag is nested in one big tag and in next transformation of xml it shud take the the big tag in CDATA and at the end wat happens is the nested CDATA and thus last xml creates a problem.

is there any way for the message >><<text message>><< to process as normal data and not the CDATA?

please help
 
Consider Paul's rocket mass heater.
 
subject: Transforming >><<text message>><< this kind of message into CDATA