Document doc = newSVGDoc();
DOMConfiguration conf = ((AbstractDocument) doc).getDomConfig();
conf.setParameter("cdata-sections", Boolean.FALSE);
Element e = doc.getDocumentElement();
e.appendChild(doc.createTextNode("abc"));
e.appendChild(doc.createCDATASection("def"));
e.appendChild(doc.createTextNode("ghi"));
((AbstractDocument) doc).normalizeDocument();
if (!(e.getFirstChild().getNodeType() == Node.TEXT_NODE
&& e.getFirstChild().getNodeValue().equals("abcdefghi")
&& e.getFirstChild() == e.getLastChild())) {