You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by "Kumuda@learningmate.com" <ku...@learningmate.com> on 2002/10/12 15:16:53 UTC

Schema Validation Problem

Hi,
Once again the same question.
But this  time, every thing is ok still I am getting Exception
org.xml.sax.SAXParseException: http://apache
org/xml/features/validation/schema-full-checking
I want to set this feature.
I am using Xerces-j-2.2.0 .
My code is as follows...... for validating schema

XMLReader sp = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers
SAXParser");        sp.setFeature( "http://xml.org/sax/features/namespaces"
true);
sp.setFeature("http://xml.org/sax/features/validation",true);
sp.setFeature( "http://apache.org/xml/features/validation/schema",true);
sp.setFeature( "http://apache
org/xml/features/validation/schema-full-checking",true);
sp.setEntityResolver(resolver);

can any one please tell, why I am getting this Exception and how to correct
it
Thank You in advance.........
KumudaRajarshi