[xmlsec] Problem with xmlParseDoc

Aleksey Sanin aleksey at aleksey.com
Fri Oct 12 13:48:45 PDT 2007

Check that all namespaces are set correctly in the buffer
after you do xmlDocDumpMemory ()


Erik F. Andersen wrote:
> Hi!
> I'm having a problem getting xmlsec working with the xmlParseDoc function.
> If I build the document from scratch using xmlNewDoc I have no problem 
> signing my documents, but if I write the contents of the document 
> to memory xmlDocDumpMemory and then read the document back using 
> xmlParseDoc, then signing does not work on the new document.
> xmlSecDSigCtxSign will return a negative value.
> Is there something I have to do after reading a document using 
> xmlParseDoc before xmlsec will work correctly on that document?
> I'm using the Win32 binaries and libxml2 version 2.6.17 and libxmlsec 
> version 1.2.6.
> Regards,
> Erik
> ------------------------------------------------------------------------
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec

More information about the xmlsec mailing list