From: SourceForge.net <no...@so...> - 2008-02-28 14:32:33
|
Feature Requests item #1877458, was opened at 2008-01-22 16:50 Message generated for change (Settings changed) made by bodewig You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377771&aid=1877458&group_id=23187 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: XMLUnit for Java Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Olivier Armand (extended) Assigned to: Nobody/Anonymous (nobody) Summary: Support for XML entities comparison Initial Comment: The DifferenceEngine's JavaDoc ( http://xmlunit.sourceforge.net/api/org/custommonkey/xmlunit/DifferenceEngine.html ) indicates: "Nodes of other types (eg ENTITY_NODE) will be skipped." This means that for example this test case fails: assertXMLEqual("<root>bla\r\nbla</root>", "<root>bla
\nbla</root>"); I suppose this is because XmlUnit sees \r\n on one side and only \n on the other side since 
 is skipped. In my case the control and the test are generated by different processing chain (and XML parsers/serializers), which may produce either entities or standard characters. XMLUnit.setNormalizeWhitespace(true); seems to be a solution for the special case of this entity, but true support for XML entities comparison would be much better. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377771&aid=1877458&group_id=23187 |