Re: [xml] Error callbacks when validating using RelaxNG



On Wed, Feb 22, 2006 at 06:18:38PM -0500, Victor Ng wrote:
But when I try to use my own callback function I only seem to get the
message body "Expecting element trip, got foo" without any line numbers.

I'm using a callback function defined as:

     27 void errorFunc (void *ctx, const char *msg, ...)

  Set up  a structured error hander instead:
    http://xmlsoft.org/html/libxml-xmlerror.html#xmlSetStructuredErrorFunc
an xmlError strcutre has far more informations:
    http://xmlsoft.org/html/libxml-xmlerror.html#xmlError

Daniel

-- 
Daniel Veillard      | Red Hat 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]