The deep-equal in XQuery compares two XML nodes and returns true or false. More information about deep-equal is at this link:
http://maxtoroq.github.io/xpath-ref/fn/deep-equal.html
You can use the BaseX GUI or the basex command line script to execute xquery queries in an Open Source environment.
Vincent