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>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Xmlunit-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xmlunit-general

Reply via email to