Hi Alberto!

Yep, it worked with the modified version of DOMDocumentImpl::callUserDataHandlers(). Of course, I couldn't use the full DOMDocumentImpl.cpp, it changed too much from 2.7 to 3.0. However, I just put the stuff you changed in callUserDataHandlers() into 2.7's version, and it did the trick.

Something else that I discovered: DOMUserDataHandler::handle()'s data parameter does not carry the data from src, but the one that has been registered with the DOMDocument - but it the DOMUserDataHandler::handle() docs don't say that anywhere. Not a problem really, but I find it confusing (maybe it is not so much though if you know that you have to register the data handler with the DOMDocument, which I didn't at the beginning).

However, I wonder if switching to 3.0 makes sense for me, rather than relying on a patched version of 2.7. How far is 3.0 from release? How stable is it?

Thanks & Cheers,

Uwe


Alberto Massari amassari-at-datadirect.com |xerces-c-users mailing list| schrieb:
Hi Uwe,
I guess you are right, and Xerces doesn't expect the list of handlers to change midway; can you try getting the latest DOMDocumentImpl.cpp from SVN and try if it works?

Thanks,
Alberto


Reply via email to