XML document (signed with DSA key)
The sample content provided here is for the purpose of demonstrating what a signed document (a document signed with a DSA key) might look like.
This example is of the XML document (unsigned) document signed with a DSA key.
<?xml version="1.0" encoding="UTF-8"?>
<dsig:Signature xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
<dsig:SignedInfo>
<dsig:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/RECxmlc14n20010315"/>
<dsig:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsasha1"/>
<dsig:Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="#data">
<dsig:Transforms>
<dsig:Transform Algorithm="http://www.w3.org/2001/10/xmlexcc14n#"/>
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<dsig:DigestValue>csQGAs6Saj2/7Vl2lrHQKjUejEk=</dsig:DigestValue>
</dsig:Reference>
</dsig:SignedInfo>
<dsig:SignatureValue>Ycmd87l/0VGLYoNGwzxv/us7fpUX4AMZzaNWV3UuGkAxB8NZ8HzhpnATlAQcpirzFqgizH/KUjCr2csiemByJQ==</dsig:SignatureValue>
<dsig:Object Id="data">
<MyElement>
<MySecret xmlns:dec="http://tempuri.org">This is my first signed XML node...</MySecret>
<MyLogin xml:id="log">This is my second signed XML node.</MyLogin>
<MyCode xml:id="code">1234</MyCode>
</MyElement>
</dsig:Object>
</dsig:Signature>