Document document = XMLParser.createDocument();
Element child = document.createElement("child");
child.setNodeValue(" ");
document.appendChild(child);
Element child2 = document.createElement("child");
child2.appendChild(document.createCDATASection(" "));
document.appendChild(child2);
// Pre-Assert : empty TextNode should exists
assertEquals(1, child.getChildNodes().getLength());
assertEquals(1, child2.getChildNodes().getLength());