Alberto Massari wrote:
At 15.28 19/03/2007 +0000, Stephen Collyer wrote:
?> Alberto,
Is there any way to do this by looking at the errType value ?
At the moment, it seems to me that the Perl bindings don't expose
any way to get of the errDomain, but do provide a getType method.
Stephen,
the errType enum is simply Warning/Error/Fatal Error; I don't know if
the Perl binding can access protected methods, or create callback
object, but in case it can you could try registering your own
XMLErrorReporter-derived error handler by calling
parser->getScanner()->setErrorReporter.
Thanks for the rapid response and the suggestion.
It looks to be somewhat trickier than I hoped, and the C++
docs make it sound a little scary ("for use by those
writing their own parser classes"). I'll take a look
anyhow.
I have to say I'm impressed with how much customization
can be done with the C++ interface - seems pretty much
anything under the sun can be replaced/overridden in some
way.
--
Regards
Steve Collyer
Netspinner Ltd