Project

Profile

Help

https://www.saxonica.com/saxon-c/doc11/html/saxonc.html#PySchemaValidator-get_error_code and get_error_message

Added by Martin Honnen almost 2 years ago

I am trying to understand the PySchemaValidator API and its proper use, I am kind of confused that get_error_code and get_error_message say Args:nindex (int): The i'th exception but there doesn't seem to be a property or method get the number/count of error message occurred.

Am I supposed to write a while loop trying e.g. get_error_message(i) until the message returns None for a certain value of i? Is there a Python sample showing the use of those methods?


    (1-1/1)

    Please register to reply