Hi.

We're using Xerce's SAXParser for validating XML documents and detect
possible errors in the documents.

One of the documents that we try to validate has an element that is
defined in the schema as "xsd:gYear". If we put a value with two digits
(for example "07") in this element we should get an validation error as
gYear requires a four digits year ("2007"), but the parse() method ends
without reporting any warning or error. If I validate the same document
with Altova XMLSpy I get the validation error. Is there any way to
detect this kind of errors in the SAXParser?

Thanks,

Enrique

Reply via email to