Document doc = this.db.parse(new InputSource(new StringReader(XML)));
{
Canonicalizer20010315ExclOmitComments c14n =
new Canonicalizer20010315ExclOmitComments();
XMLSignatureInput input = new XMLSignatureInput(doc.getDocumentElement().getFirstChild());
byte[] bytes = c14n.engineCanonicalize(input, "#default xsi");
assertEquals(c14nXML, new String(bytes));
}
{
//exactly the same outcome is expected if #default is not set:
Canonicalizer20010315ExclOmitComments c14n =