Re: [xml] schema: useful error infoemation?
- From: Daniel Veillard <veillard redhat com>
- To: Stefan Weigert <Stefan Weigert mailbox tu-dresden de>
- Cc: xml gnome org
- Subject: Re: [xml] schema: useful error infoemation?
- Date: Fri, 21 Jul 2006 09:43:40 -0400
On Fri, Jul 21, 2006 at 03:36:54PM +0200, Stefan Weigert wrote:
At the time of the validation, only the line number associated to node
are available, column informations can't be provided and probably don't
make a lot of sense.
Daniel
ok. you are right ;) but where do i get the line number from? there is nothing
said about it - neither in the doc nor in the tests...
the 1866 i mentioned was the return value of "xmlSchemaValidateDoc(...)" and
this cannot be the line number.
the (const char *msg) parameter of my error-function, set through
"xmlSchemaSetValidErrors(...)", doesn't seem to contain anything - at least i
can't print it using "printf("%s",msg)". the print-out is always "%s" which is
strange and makes me wonder if i use it right...
well. thanks for your response and patience (with me) in advance ;)
Use structured error report, either per shemas or global as in my answer
to Ferry Huberts 5 minutes ago.
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]