Article:
  XML Document Validation with an XML Schema
Subject:   Exceptions when run
Date:   2005-12-17 03:18:16
From:   NehaK
Hi


Your code is very helpful.
But while running this code i am getting the below mentioned error. I have set the 2 jars in classpath also. and i have installed jdk 1.5 version for this.


Please suggest what could be the issue.


Exception in thread "main" javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl could not be instantiated: java.lang.NullPointerException
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:104)
at JAXPValidator.validateSchema(JAXPValidator.java:19)
at JAXPValidator.main(JAXPValidator.java:82)