Something like this might work for you: deep-equal(doc($url1), doc($url2)) If you have specific rules about what makes two things equal you can write your own comparison function in XQuery. Would you be able to provide a little more information about what you are trying to compare, and how the things to be compared are retrieved? Vincent ________________________________ From: basex-talk-bounces@mailman.uni-konstanz.de <basex-talk-bounces@mailman.uni-konstanz.de> on behalf of Mohamed kharrat <med_khr@yahoo.fr> Sent: Saturday, June 25, 2016 7:09:30 PM To: BaseX Talk Subject: [basex-talk] xquery retrieval evaluation Hello everybody, is anyone have a system or solution which can be available for comparing result with another retrieval system based on xquery. Thanks for all.