[xml] capturing error messages



A newbie question: I would like to parse a document from a file,
collecting errors and warnings to be displayed in a window rather than
printing them to stderr.  Is there an easier way to do this than using
SAX callbacks?  Can I just call something to set up a callback before
calling xmlParseFile?  (It's a single-threaded program, so a global
callback would be okay.)  I've been browsing through the API docs and
the code but I haven't found anything obvious.

If SAX is the way to go, is there an easy way to make an xmlSAXHandler
that builds an xmlDoc, i.e. has the same behavior as a NULL handler?

Thanks,
--Doug Orleans
dougo place org



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