how to validate a xml file with schemas via SAX
I want to validate XML documents with schemas via SAX
I have problems when asigning an *.xsd file to *.xml document
It works in my computer but don't in others.
The SAX parser fails to recognize that user.xsd is located in the same folder as XMl document.
So I decided to assign the schema document programmatically:
But this has thrown NotRecognizedException.
static final String = JAXP_SCHEMA_SOURCE =
theParser.setProperty(JAXP_SCHEMA_SOURCE, new File(...some *.xsd file full path));