I tried to get the content of an Element which has only a CDATA section. Inside the CDATA are multiple lines of text.
However when I try element.getValue()
.getText()
or .getTextTrim()
they all strip the line breaks out.
I need to get a String that preserves the linebreaks. What can I do?