XOM’s Serializer
doesn’t preserve CDATA
sections.
I’m using it similar to: https://github.com/elharo/xom/blob/master/website/examples/PrettyFibonacci.java#L26
Running it on XML like:
<foo><bar><![CDATA[1 > 2
continue;]]></bar>
</foo>
Doesn’t preserve the whitespace within the CDATA
section.
Am I missing something obvious here?
#java #xml