skybert's Blog

skybert's Avatar Image
Coder of systems, lover of languages, follower of Christ. 台灣女婿
← All posts

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

To like or reply, open original post on Emacs.ch