|
I found this solution:
SAXParserFactory factory =
SAXParserFactory.newInstance();
SAXParser saxParser =
factory.newSAXParser(); XMLReader xmlReader =
saxParser.getXMLReader();
xmlReader.setFeature("http://apache.org/xml/features/validation/schema",
true);
----- Original Message -----
Sent: Sunday, March 28, 2004 12:56
PM
Subject: How to use SAX to
validate XML against a schema?
I have specified the messages format using XML
schema and would like to use SAX to validate my data against said schema.
All the examples I have found on the web seem to validate against DTDs
and not schemas.
Could anybody please give me any help?
Regards,
jairton.
|
|