String docString = stringWriter.toString();
System.err.println(">>>>>>>>>>> Document content \n\n" + docString + "\n\n<<<<<<<<<<<<<<<<");
String parser = XMLResourceDescriptor.getXMLParserClassName();
SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser);
doc = f.createDocument("http://xml.apache.org/batik/foo.svg",
new StringReader(stringWriter.toString()));
text = doc.getElementById("myText");
cdata = (CDATASection)text.getFirstChild();
if (cdata.getData().equals(unescapedContent)) {