On Tue, 24 Jun 2008, Aslam Karachiwala <ak...@gm...> wrote:
> Here are 2 documents that Diff & XMLAssert.assertXMLEqual() should
> consider "similar", as I understand it, but they don't.
Order is only irrelevant if XMLUnit knows how to match the
out-of-order nodes against each other.
> The only difference is the order of the <result /> nodes
Not really.
It is the order of result nodes that differ in Text content in a
grandchild - XMLUnit won't dig that deep when deciding which result
Node to compare to which other result Node, unless you explicitly tell
it to.
If you use the example RecursiveElementNameAndTextQualifier from
XMLUnit 1.2 it should work.
Stefan
|