Canonicalizer c14nizer =
Canonicalizer.getInstance(Canonicalizer.ALGO_ID_C14N_OMIT_COMMENTS);
CachedXPathAPI xpathAPI = new CachedXPathAPI();
XMLUtils.circumventBug2650(doc);
NodeList nodes =
xpathAPI.selectNodeList(doc, "(//*[local-name()='included'] | //@*)");
byte result[] = c14nizer.canonicalizeXPathNodeSet(nodes);
byte defined[] = definedOutput.getBytes();
if (writeResultsToFile) {
File fileD = new File("defined.txt");