Article:
  XML Document Validation with an XML Schema
Subject:   I only get Errors :-/
Date:   2005-03-25 04:47:37
From:   Jonas123
Hi,


both examples doesn't work with Xerces 2.6.2 - maybe someone can help me?


I get this errors:
java.lang.NoClassDefFoundError: org/apache/xerces/parsers/AbstractSAXParser


or:
javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found


Jonas123

Main Topics Oldest First

Showing messages 1 through 2 of 2.

  • I only get Errors :-/
    2005-03-25 06:30:09  Deepak Vohra | [View]

    To validate with the Xerces 2.6.2 parser compile the SchemaValidator.java program.

    To validate with the JAXP parser compile the JAXPValidator.java program.

    Add the jar files specified in the Preliminary Setup section to the Classpath.
  • I only get Errors :-/
    2005-03-25 06:17:36  Deepak Vohra | [View]

    Tested the SchemaValidator.java program with the Xerces 2.6.2. The xml document gets validated with the schema.

    Have you added xerces-2_6_2/xercesImpl.jar and xml-apis.jar the Classpath?