String query = "declare namespace hoge=\"http://www.hoge.jp/dtd\"; <records xmlns:hoge=\"http://www.hoge.jp/dtd\"> {for $t in doc(\"./main/test/java/scenario/multithread/data-s.xml\")/records/record return <record>{$t/@*}{$t/author/text()}{ fn:concat(\"《\", $t/title/text() , \"》\") }</record>} </records>";
String xbirdOut = invokeQueryPushModeUsingSAX(query);
String saxonOut = invokeQueryBySaxon(query);
Diff diff = new Diff(saxonOut, xbirdOut);
if(!diff.identical()) {
if(!diff.similar()) {
Assert.fail(diff.toString());
} else {
System.out.println(diff.toString());
}
}