Re: [xml] Beta release of 2.6.0beta2



Daniel Veillard wrote:

Daniel, do you have any tests / examples included that demonstrate
these new features ?


  Well there is no new feature, yet. The main change is that all errors
from the XML parser module are now processed via a few routines at the
top of parser.c . Those routine in turn call the existing APIs. However
it should be relatively easy now to plug a new error intercerption layer
at a "logical" level. The routines get the parser context if available,
the xmlParserErrors value and some extra arguments for better error reporting. Now, I expect interested people to discuss the kind of interfaces they would like, and if made in time I will provide this in 2.6.0

Great. I guess one thing to do would be to provide a callback registration function that lets users replace the default handler
(which, as you say, just redirects to the 'old' callback interface)
with they own, and thus write little tests to get a feeling for the
new API's use. What do you think ?

This could then immediately be tested in a variety of contexts/languages, notably the C++ and python wrappers, which have
their own way to deal with errors.

Could such a registrator be added to the cvs snapshots so we have some
time to play with it before the next beta release ?

Regards,
                Stefan





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]