code: public static void assertXpathValuesEqual(String controlXpath,
                                                Document controlDocument,
                                                String testXpath,
                                                Document testDocument)
          throws XpathException {
          XpathEngine xpath = XMLUnit.newXpathEngine();
          assertEquals(xpath.evaluate(controlXpath, controlDocument),
                       xpath.evaluate(testXpath, testDocument));
      }
docs: Assert that the evaluation of two Xpaths in two documents are equal
  @param controlXpath
  @param testXpath
  @param controlDocument
  @param testDocument
  @see XpathEngine