I am using the following lines of code to set the features of XMLReader.
parser = saxParser.getXMLReader();
try{
parser.setFeature("http://xml.org/sax/features/validation", true);
parser.setFeature("http://xml.org/sax/features/namespaces", true);
parser.setFeature("http://apache.org/xml/features/validation/schema",true);
}
catch(SAXNotRecognizedException e)
{
}
But when I run the program it is givng the following error
org.xml.sax.SAXNotRecognizedException: Feature:
http://apache.org/xml/features/validation/schema at org.apache.crimson.parser.XMLReaderImpl.setFeature(XMLReaderImpl.java:204)at ValidateWithSchemaJAXP.main(ValidateWithSchemaJAXP.java:61)
When I try to go the URL mentioned in the setFeature I am not able to access the page.
Can anybody suggest me how to solve this problem
Thanks and Regards
prathibha