From: igor <ig...@iz...> - 2009-10-16 11:14:33
|
Hi, overall the library is working very nice, thanks for it. But when I run following code, I get as a result that the XMLs do not match - are not equal. Is this intended behavior? I tried to debug the source code but it seems to be pretty complex for me, I believe you can find the cause much faster than me. // code start import java.io.IOException; import org.custommonkey.xmlunit.XMLTestCase; import org.xml.sax.SAXException; public static void main(String[] args) { XMLTestCase xmlTestCase = new XMLTestCase(){}; String original = "<a> </a>"; // here are some space characters in between the beginning-end tags String newVersion = "<a></a>"; try { xmlTestCase.assertXMLEqual(original, newVersion); } catch (SAXException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } // code end Best regards Igor Zemsky |