Hello,<br><br>i cant sign xml using the Sing3.c example in windows(VC6), adding URI in xmlSecTmplSignatureAddReference(...)<br><br>my xml(and signNode):<br><br>&lt;infN Id=&quot;N43060500072391000150550990000070080007055470&quot; versao=&quot;
1.07&quot;&gt;hello&lt;/infN&gt;<br><br>I try this:<br><br>&nbsp;&nbsp;&nbsp; /* add reference &quot;#N43060500072391000150550990000070080007055470&quot;*/<br>&nbsp;&nbsp;&nbsp; refNode = xmlSecTmplSignatureAddReference(signNode, xmlSecTransformSha1Id,
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NULL, &quot;#N43060500072391000150550990000070080007055470&quot;, NULL);<br><br><div id="mb_0"><br>when sign the template <br><br>&nbsp;&nbsp;&nbsp; if(xmlSecDSigCtxSign(dsigCtx, signNode) &lt; 0) ...<br><br>obtain error
<br><br>func=xmlSecXPathDataExecute:file=..\src\xpath.c:line=273:obj=unknown:subj=xmlXPt<br>rEval:error=5:libxml2 library function failed:expr=xpointer(id(&#39;N4306050007239<br>1000150550990000070080007055470&#39;))<br>func=xmlSecXPathDataListExecute:file=..\src\xpath.c:line=356:obj=unknown:subj=xm
<br>lSecXPathDataExecute:error=1:xmlsec library function failed:<br>func=xmlSecTransformXPathExecute:file=..\src\xpath.c:line=466:obj=xpointer:subj=<br>xmlSecXPathDataExecute:error=1:xmlsec library function failed:<br>func=xmlSecTransformDefaultPushXml:file=..\src\transforms.c:line=2371:obj=xpoint
<br>er:subj=xmlSecTransformExecute:error=1:xmlsec library function failed:<br>func=xmlSecTransformCtxXmlExecute:file=..\src\transforms.c:line=1207:obj=unknown<br>:subj=xmlSecTransformPushXml:error=1:xmlsec library function failed:transform=xp
<br>ointer<br>func=xmlSecTransformCtxExecute:file=..\src\transforms.c:line=1267:obj=unknown:su<br>bj=xmlSecTransformCtxXmlExecute:error=1:xmlsec library function failed:<br>func=xmlSecDSigReferenceCtxProcessNode:file=..\src\xmldsig.c:line=1571:obj=unkno
<br>wn:subj=xmlSecTransformCtxExecute:error=1:xmlsec library function failed:<br>func=xmlSecDSigCtxProcessSignedInfoNode:file=..\src\xmldsig.c:line=804:obj=unkno<br>wn:subj=xmlSecDSigReferenceCtxProcessNode:error=1:xmlsec library function failed
<br>:node=Reference<br>func=xmlSecDSigCtxProcessSignatureNode:file=..\src\xmldsig.c:line=547:obj=unknow<br>n:subj=xmlSecDSigCtxProcessSignedInfoNode:error=1:xmlsec library function failed<br>:<br>func=xmlSecDSigCtxSign:file=..\src\xmldsig.c:line=303:obj=unknown:subj=xmlSecDSi
<br>gCtxSigantureProcessNode:error=1:xmlsec library function failed:<br>Error: signature failed<br><br>I search this mail list but i cant found a problem/solution about this error.<br><br>I using <a href="http://zlatkovic.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
zlatkovic.com</a> libs.<br><br>Thanks in advanced.</div><br>Ricardo<br><br>