Re: [xml] ValidityError & ValidityWarning

Date view Thread view Subject view Author view

From: Steve Hawkinson (hawkinson@lcse.umn.edu)
Date: Sat Mar 18 2000 - 19:50:55 EST


If you use a posterier validation like in tester.c line 466:

    xmlValidCtxt cvp;
    cvp.userData = (void *) stderr;
    cvp.error = (xmlValidityErrorFunc) fprintf;
    cvp.warning = (xmlValidityWarningFunc) fprintf;
    xmlValidateDocument(&cvp, doc);

It seems like it would be easy enough to change stderr to some file pointer
and the errors would be redirected.

        Steve

On Fri, 17 Mar 2000, Kenny
Hom wrote:

> Date: Fri, 17 Mar 2000 10:58:24 -0800
> From: Kenny Hom <khom@vovida.com>
> To: xml@xmlsoft.org
> Subject: [xml] ValidityError & ValidityWarning
>
>
> Is there a way to override xmlParserValidityError and
> xmlParserValidityWarning as the default functions without using SAX?
> When validating XML against a DTD, I want to capture the errors and
> warning messages in my own log rather than have them sent to standard
> output.
>
> I know there was a similar question asked awhile back regarding
> xmlParserError and xmlParserWarning, but I think there may be a
> different answer to my question.
>
> Thanks in-advance,
> Kenny
> ----
> Message from the list xml@xmlsoft.org
> Archived at : http://xmlsoft.org/messages/
> to unsubscribe: echo "unsubscribe xml" | mail majordomo@xmlsoft.org
>

----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:30:08 EDT