Posted By:
RaviKumar_Gopalankutty
Posted On:
Sunday, October 7, 2001 11:03 PM
I have tried using the following parameters to turn on the XML Schema validation when using a
org.apache.xerces.parsers.DOMParser
parser.setFeature("http://xml.org/sax/features/validation", true);
parser.setFeature( "http://apache.org/xml/features/validation/schema", true);
parser.setFeature( "http://apache.org/xml/features/validation/schema-full-checking", true);
The issue is that the parser is
not sensing that a mandatory element is missing
in the XML Document. The error is immediately shown when I validate the same XML document in a 3rd party tool like XML Spy.