From: Aslam K. <ak...@gm...> - 2008-06-24 17:04:05
|
Here are 2 documents that Diff & XMLAssert.assertXMLEqual() should consider "similar", as I understand it, but they don't. The only difference is the order of the <result /> nodes -- look at the digit at the end of the respective <uri /> text. I'm not explicitly setting any XMLUnit config options. --aslam <?xml version="1.0"?> <sparql xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xs="http://www.w3.org/2001/XMLSchema#" xmlns="http://www.w3.org/2005/sparql-results#" > <head> <variable name="subject"/> <variable name="title"/> </head> <results> <result> <binding name="subject"> <uri>http://m3t4.com/test1#dab4</uri> </binding> <binding name="title"> <literal>Aaron Fawcett</literal> </binding> </result> <result> <binding name="subject"> <uri>http://m3t4.com/test1#dab5</uri> </binding> <binding name="title"> <literal>Aaron Fawcett</literal> </binding> </result> </results> </sparql> =============== <?xml version="1.0"?> <sparql xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xs="http://www.w3.org/2001/XMLSchema#" xmlns="http://www.w3.org/2005/sparql-results#" > <head> <variable name="subject"/> <variable name="title"/> </head> <results> <result> <binding name="subject"> <uri>http://m3t4.com/test1#dab5</uri> </binding> <binding name="title"> <literal>Aaron Fawcett</literal> </binding> </result> <result> <binding name="subject"> <uri>http://m3t4.com/test1#dab4</uri> </binding> <binding name="title"> <literal>Aaron Fawcett</literal> </binding> </result> </results> </sparql> |