[xml] Getting line number of schema validation errors
- From: Israel Ganor <ganor softlink com>
- To: "'xml gnome org'" <xml gnome org>
- Subject: [xml] Getting line number of schema validation errors
- Date: Sun, 16 May 2004 10:58:30 +0200
Hi,
I validate XML files vs. a schema asfollows:
xmlSchemaSetValidErrors(validSchema,
(xmlSchemaValidityErrorFunc) ErrorCallback,
(xmlSchemaValidityWarningFunc) WarningCallback,
NULL);
xmlSchemaValidateDoc(validSchema, pDoc);
However, in ErrorCallback and WarningCallback I only get general info about
the failure, but without the line number.
It it's very helpful to tell the user that there is an error in <USER>
element, when his XML file contains 100 such elements.
Is there a way to tell the exact error line number?
Thanks in advance
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]