Hi all, my goal is to sign a binary data. What i did is , had that binary data in unsigned char* outBuf; and then executed xmlNodeSetContent(node, (xmlChar* )outBuf); The above statement is not writing the data to the xml file. Why is it behaving like this? Please help me by advising or atleast telling a work around. Thanks, Divya