[xmlsec] xmlSecAddAndGenerateId

nitin singh xml_prgrm at yahoo.com
Fri Nov 5 15:27:12 PST 2004


Hello,
I called,
xmlSecAddAndGenerateId function with following
parameters.
xmlSecAddAndGenerateId(node,BAD_CAST"Id",BAD_CAST"enc",4);
The id generated is as follows: @B at B.
not what i expected.

Next I thought may be length is less so i tried
xmlSecAddAndGenerateId(node,BAD_CAST"Id",BAD_CAST"enc",10);
I get following error.
------------------------
xmlEncodeEntitiesReentrant : input not UTF-8
output conversion failed due to conv error
Bytes: 0x80 0x42 0x22 0x2F
I/O error : encoder error
-----------------------
program terminated.
I went in to the code and see where it is generated.
it is at line 624 , xmltree.c, at fn call xmlSetProp

Please tell me what is it that i am doing wrong.
Thanks
Nitin






		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 




More information about the xmlsec mailing list