Re: [xml] Error messages
- From: Daniel Veillard <veillard redhat com>
- To: Jean-Yves Lamoureux <jylam lnxscene org>
- Cc: xml gnome org
- Subject: Re: [xml] Error messages
- Date: Thu, 14 Mar 2002 08:55:45 -0500
On Thu, Mar 14, 2002 at 02:42:42PM -0800, Jean-Yves Lamoureux wrote:
Hi.
I was looking at the libxml2 sources, and I was wondering if there was a way to suppress all error messages
printf'd when an error occurs. It is a bit annoying, but I didn't find a #define or something to avoid that.
Try xmlSetGenericErrorFunc()
http://xmlsoft.org/html/libxml-xmlerror.html#XMLSETGENERICERRORFUNC
Then, is there a way to check validity of an XML file on the xmlDoc structure returned by xmlParseMemory()
?
That's possible assuming the DTD informations are present (and
xmlParseMemory() makes it harder if there is no base URI).
http://xmlsoft.org/html/libxml-valid.html#XMLVALIDATEDOCUMENT
look at xmllint.c postvalid code it does this kind of things.
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.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]