Re: [xml] capturing error messages



On Fri, Jul 22, 2005 at 04:28:02PM -0400, Doug Orleans wrote:
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.

  http://xmlsoft.org/html/libxml-xmlerror.html
  see xmlSet...ErrorFunc

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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