Re: [xml] suppress error message



In message <20020510143158 O3714 porschberg osp-dd de>
          Thomas Porschberg <thomas porschberg osp-dd de> wrote:


How can I suppress the errormessage on xmlParseFile ?

Okay, I can use
xmlSetGenericErrorFunc(f, NULL);
with f points to /dev/null, but is there a better solution ?

Create a dummy function that does nothing :

void DoNothingErrorFunc(void *ctx, const char *msg, ...)
{
  /* Nothing to see here, move along */
}

then register it :

xmlSetGenericErrorFunc(NULL, DoNothingErrorFunc);

-- 
Gerph {djf0-.3w6e2w2.226,6q6w2q2,2.3,2m4}
URL: http://www.movspclr.co.uk/
... Eyes to the heavens, screaming at the sky;
    Trying to send you messages, but choking on goodbye.



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