<div>I am using the xmlsec functions given in the sample for dynamically signing the xml document</div>
<div>but it does NOT come in the following format. The "ds:" name space does not appear though everything else appears. I need to dynamically sign so that this ds: will be also appear. This is required so that some Java verifying program can verify it.
</div>
<div>Thanks in advance,</div>
<div>Yesh</div>
<div> </div>
<div><ds:Signature xmlns:ds="<a href="http://www.w3.org/2000/09/xmldsig">http://www.w3.org/2000/09/xmldsig</a>#"><br><ds:SignedInfo><br><ds:CanonicalizationMethod Algorithm="<a href="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></ds:CanonicalizationMethod">
http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></ds:CanonicalizationMethod</a>><br><ds:SignatureMethod Algorithm="<a href="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod">
http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod</a>><br><ds:Reference URI=""><br><ds:Transforms><br><ds:Transform Algorithm="<a href="http://www.w3.org/2000/09/xmldsig#enveloped-signature"></ds:Transform">
http://www.w3.org/2000/09/xmldsig#enveloped-signature"></ds:Transform</a>><br><ds:Transform Algorithm="<a href="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"></ds:Transform">
http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"></ds:Transform</a>><br></ds:Transforms><br><ds:DigestMethod Algorithm="<a href="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod">
http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod</a>><br><ds:DigestValue>EHfSXC1GvkZzHFiEHXV6eaxaIfI=</ds:DigestValue><br></ds:Reference><br></ds:SignedInfo><br><ds:SignatureValue>
</div>
<div><br><br> </div>
<div><span class="gmail_quote">On 12/22/06, <b class="gmail_sendername">Aleksey Sanin</b> <<a href="mailto:aleksey@aleksey.com">aleksey@aleksey.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">><br>> But how to add the namespace for the <signature> tag ? and also it's<br>> child elements in a dynamically generated signed xml?
<br><br>If you use xmlsec functions for creating templates, then namespace<br>nodes will be added automatically.<br><br>Aleksey<br><br><br></blockquote></div><br>