https://bugs.documentfoundation.org/show_bug.cgi?id=84237

Michael Stahl <mst...@redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |difficultyBeginner,
                   |                            |easyHack, skillCpp
            Summary|Method setErrorHandler in   |Method setErrorHandler in
                   |documentbuilder not working |DOM::CDocumentBuilder not
                   |                            |working

--- Comment #4 from Michael Stahl <mst...@redhat.com> ---
this should be quite easy to fix, in unoxml/source/dom/documentbuilder.cxx
there are already error callbacks set before invoking libxml2,
namely warning_func() and error_func(), and i guess the
 pContext->_private = this;
will cause the void* parameter of these *_func() to refer to the
CDocumentBuilder instance.

so this basically means to modify warning_func() and error_func()
to invoke the corresponding m_xErrorHandler methods
from com.sun.star.xml.sax.XErrorHandler interface.

care must be taken to catch any exceptions thrown,
because they must not pass through libxml2 C code.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to