#16 add text without escaping or adding cdata section!?!

open
nobody
None
7
2012-10-08
2008-07-09
No

Hi,

I want to add a String as text/content to an Element. If I use the addText() method my String gets escaped, so "

...

" becomes something like this "<p%gt;..".

Oh fine, I have to use addCDATA() method ... no I don't because this would make something like "<![CDATA[...myText...]]>".

I just want to add my String as body-content to an element wihout changing the string in whatever way. Is this possible??

using dom4j.1.6.1

regards, chris

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks