This test fails:
public void testCDATA()
throws SAXException, IOException,
String expected = "<a>Hello</a>";
String actual = "<a><![CDATA[Hello]]></a>";
There's no justification for that. It should pass. That
the test fails is an artifact of a design flaw in DOM
(Text and CDATASection nodes are distinguished.)
There's no reason to echo that here. We're comparing
XML, not DOM. The use of DOM is an implementation detail.
Log in to post a comment.