[xml] Getting line number of schema validation errors



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]