<div>Ok I got it.</div>
<div>xmlSecTmplSignatureAddReference().&nbsp; The third parameter has to be specified to BAD_CAST &quot;&quot;.</div>
<div>&nbsp;</div>
<div>But how to add the namespace for the &lt;signature&gt; tag ? and also it&#39;s child elements in a dynamically generated signed xml?</div>
<div>Thanks in advance</div>
<div>Yesh</div>
<div>&nbsp;</div>
<div>i.e. <span class="m"><font color="#0000ff">&lt;ds:Signature</font></span><span class="ns"><font color="#ff0000">xmlns:ds</font></span><span class="m"><font color="#0000ff">=&quot;</font></span><b class="ns"><font color="#ff0000">
<a href="http://www.w3.org/2000/09/xmldsig">http://www.w3.org/2000/09/xmldsig</a>#</font></b><font color="#0000ff"><span class="m">&quot;</span><span class="m">&gt;</span></font><br>&nbsp;</div>
<div><span class="gmail_quote">On 12/22/06, <b class="gmail_sendername">Yeshwanth C</b> &lt;<a href="mailto:cyeshwanth@gmail.com">cyeshwanth@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hi,</div>
<div>In a dynamically signed xml I would like to add &lt;Reference URI=&quot;&quot;&gt; instead of just &lt;Reference&gt;</div>
<div>Thanks in advance.</div>
<div>Yesh</div></blockquote></div><br>