Error: System property org.xml.sax.driver not specified
org.xml.sax.SAXException: System property org.xml.sax.driver not specified
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at com.nit.admin.service.impl.appservice.DataReader.main
If you get such error, it means you are not using the SAXParser properly.
Proper Use:
===============================================
XMLReader tXR = null;
SAXParserFactory tSaxParserFact = SAXParserFactory.newInstance();
SAXParser tSAXParser = tSaxParserFact.newSAXParser();
tXR = tSAXParser.getXMLReader();
/*-------DataReader is our class which extends DefaultHadler
and overrides its methods */
DataReader tDataReader = new DataReader();
tXR.setContentHandler(tDataReader);
tXR.parse(new InputSource(new FileReader("Filename"));
===============================================
The error will be eliminated. It has been tried out.
cheers,
Prasad