I've written an application that checks if an XSD file is valid.
In
Java 5 everything is ok but in Java 6 there seems to be a problem.
It seems that if SchemaFactory.newInstance.newSchema is provided with DOMSource, then the validation is valid, even if the DOM is invalid.
To be more specific the first time the DOM is validated, if the DOM is invalid, it notifies that it is invalid,
but the rest of the times the validation seems to think that the DOM is valid.
If newSchema is provided with File then there's no problem.
Any help would be appreciated
Thank you
Sample XSD (invalid)