I think the "correct" way to do this is to compile/load/run an XPath or XQuery expression of the form "deep-equal($x, $y)", supplying the values of $x and $y as run-time parameters.
In principle you can make a direct call on the static method net.sf.saxon.functions.DeepEqual.deepEquals() with appropriate parameters, but there's no guarantee that such an interface is stable.
Michael Kay

From: saxon-help-bounces@lists.sourceforge.net [mailto:saxon-help-bounces@lists.sourceforge.net] On Behalf Of Rishikesh Kollipara
Sent: 06 March 2008 17:20
To: saxon-help@lists.sourceforge.net
Subject: [saxon] using deep-equal in saxon


I have two xml documents. I want to do an deep-equal on node1 in document1 with node2 in documents using saxonB-9.0 java API. Is it possible to do? If so can somebody please let me know. Thanks