<div>Ok I got it.</div>
<div>xmlSecTmplSignatureAddReference(). The third parameter has to be specified to BAD_CAST "".</div>
<div> </div>
<div>But how to add the namespace for the <signature> tag ? and also it's child elements in a dynamically generated signed xml?</div>
<div>Thanks in advance</div>
<div>Yesh</div>
<div> </div>
<div>i.e. <span class="m"><font color="#0000ff"><ds:Signature</font></span><span class="ns"><font color="#ff0000">xmlns:ds</font></span><span class="m"><font color="#0000ff">="</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">"</span><span class="m">></span></font><br> </div>
<div><span class="gmail_quote">On 12/22/06, <b class="gmail_sendername">Yeshwanth C</b> <<a href="mailto:cyeshwanth@gmail.com">cyeshwanth@gmail.com</a>> 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 <Reference URI=""> instead of just <Reference></div>
<div>Thanks in advance.</div>
<div>Yesh</div></blockquote></div><br>