[Newsml-toolkit-users] CData in ContentItem
Brought to you by:
dcompton,
dmegginson
From: Pierre R. <pie...@cg...> - 2004-01-21 13:50:39
|
Hello, first, as a newcomer on the list, hello everybody. Then, my question : I'm using the NewsML API and I need to insert a CDATA section into a DataContent element, for example something like : <DataContent> <![CDATA[ anything with stange characters, like <, >, etc. In fact that will be mainly HTML ]]> </DataContent> When I use the method setText("<![CDATA[... ]]>"), the text is escaped and i get < instead of <, etc. When I use the method setXMLString("<![CDATA[... ]]>") I get a error saying that my xml string is not valid, which I do not understand. Could anyone tell me how I could insert a CDATA into a DataContent element ? thanks a lot Pierre |