Element nsctx = doc.createElementNS(null, "nsctx");
nsctx.setAttributeNS(Constants.NamespaceSpecNS, "xmlns:ds",
Constants.SignatureSpecNS);
Element signatureElem = (Element) xpathAPI.selectSingleNode(doc,
"//ds:Signature", nsctx);
XMLSignature sig = new XMLSignature(signatureElem, BaseURI);
boolean verify = sig.checkSignatureValue(sig.getKeyInfo().getPublicKey());
System.out.println("The signature is" + (verify