-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unexpected behavior when validating a xs:Date field #109
Comments
Quick note: although validation is accessed via Stax2-api, implementation is provided by Woodtox. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello all,
I’m trying to validate an XML file against its XSD schema (W3C) and I get an unexpected behaviour.
The XSD declares a tag of type
xs:date
as below defined:The XML file I’m trying to validate against contains such tag with a value that I believe should be reported as wrong by the validation process (with woodstox-6.0.3):
<MyDate>2000-00-00</MyDate>
Instead, the incorrect value is not detected. If validated with other applications such as XmlSpy or other java parsers, the error is reported correctly.
I’m wondering if there’s a feature I’ve not set (something like lenient date) or it’s actually a bug.
Source code follows:
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: