• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic