i need to digital sign my XML messages in JAVA: The resulting XML signature should have the following format:
These are standard XML-Signatures. See the W3 Documentation on "XML-Signature Syntax and Processing" for the specification how this can be done. A quick search on google lead to this howto written by Oracle on the integration of XML Signatures in Java: XML Digital Signature API. If you have any further problems, please shows us what you have tried.