(Element) doc.getElementsByTagNameNS(Constants.SignatureSpecNS,
Constants._TAG_SIGNATURE).item(0);
XMLSignature xmlSignature = new XMLSignature(signatureElement,
fileIn.toURL().toString());
boolean verify =
xmlSignature
.checkSignatureValue(xmlSignature.getKeyInfo().getPublicKey());
int length = xmlSignature.getSignedInfo().getLength();
int numberOfPositiveReferences = 0;
for (int i = 0; i < length; i++) {