<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.&nbsp; The &quot;ds:&quot; name space does not appear though everything else appears.&nbsp; I need to dynamically sign so that this ds: will be also appear.&nbsp; This is required so that some Java verifying program can verify it.
</div>
<div>Thanks in advance,</div>
<div>Yesh</div>
<div>&nbsp;</div>
<div>&lt;ds:Signature xmlns:ds=&quot;<a href="http://www.w3.org/2000/09/xmldsig">http://www.w3.org/2000/09/xmldsig</a>#&quot;&gt;<br>&lt;ds:SignedInfo&gt;<br>&lt;ds:CanonicalizationMethod Algorithm=&quot;<a href="http://www.w3.org/TR/2001/REC-xml-c14n-20010315&quot;&gt;&lt;/ds:CanonicalizationMethod">
http://www.w3.org/TR/2001/REC-xml-c14n-20010315&quot;&gt;&lt;/ds:CanonicalizationMethod</a>&gt;<br>&lt;ds:SignatureMethod Algorithm=&quot;<a href="http://www.w3.org/2000/09/xmldsig#rsa-sha1&quot;&gt;&lt;/ds:SignatureMethod">
http://www.w3.org/2000/09/xmldsig#rsa-sha1&quot;&gt;&lt;/ds:SignatureMethod</a>&gt;<br>&lt;ds:Reference URI=&quot;&quot;&gt;<br>&lt;ds:Transforms&gt;<br>&lt;ds:Transform Algorithm=&quot;<a href="http://www.w3.org/2000/09/xmldsig#enveloped-signature&quot;&gt;&lt;/ds:Transform">
http://www.w3.org/2000/09/xmldsig#enveloped-signature&quot;&gt;&lt;/ds:Transform</a>&gt;<br>&lt;ds:Transform Algorithm=&quot;<a href="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments&quot;&gt;&lt;/ds:Transform">
http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments&quot;&gt;&lt;/ds:Transform</a>&gt;<br>&lt;/ds:Transforms&gt;<br>&lt;ds:DigestMethod Algorithm=&quot;<a href="http://www.w3.org/2000/09/xmldsig#sha1&quot;&gt;&lt;/ds:DigestMethod">
http://www.w3.org/2000/09/xmldsig#sha1&quot;&gt;&lt;/ds:DigestMethod</a>&gt;<br>&lt;ds:DigestValue&gt;EHfSXC1GvkZzHFiEHXV6eaxaIfI=&lt;/ds:DigestValue&gt;<br>&lt;/ds:Reference&gt;<br>&lt;/ds:SignedInfo&gt;<br>&lt;ds:SignatureValue&gt;
</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 12/22/06, <b class="gmail_sendername">Aleksey Sanin</b> &lt;<a href="mailto:aleksey@aleksey.com">aleksey@aleksey.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">&gt;<br>&gt; But how to add the namespace for the &lt;signature&gt; tag ? and also it&#39;s<br>&gt; 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>