I have question how can I get cdata from xml? So my xml looks like this:
<tag><![CDATA[Text]]></tag>
I tried to get word by getText(), getStringValue() but they return me empty string ;/ Any idea what should i do?
I have question how can I get cdata from xml? So my xml looks like this:
<tag><![CDATA[Text]]></tag>
I tried to get word by getText(), getStringValue() but they return me empty string ;/ Any idea what should i do?
Hardly rocket science:
System.out.println(DocumentHelper
.parseText("<tag><![CDATA[Text]]></tag>").getRootElement()
.getText());