Summary: | Method setErrorHandler in documentbuilder not working | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Tobias Madl <tobias.madl.dev> |
Component: | Libreoffice | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | UNCONFIRMED --- | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | tobias.madl.dev |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 39625 |
Description
Tobias Madl
2014-09-23 10:00:05 UTC
Hmm, so I had a look and unoxml is wrapper around libxml2 library, not expat. From sax, it uses only FastAttributeList. It should be easy to fix this, have a look at warning_func in unoxml/source/dom/documentbuilder.cxx It has pContext->_private = this so one could do some casting magic and use m_xErrorHandler in warning_func / error_func. Not sure if there is also fatalerror in xmlParserCtxt::sax - quite possibly there is and could be added too. OTOH if it's not used already, it does not make sense to add this only for a unit test. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.