I wonder if anybody has a working example in Java to validate an Xml
document(or stream or file)  against a schema using Xerces 1.4 api.  I tries
so many times and failed each one of those try.  Now I am getting the
following exception:

Sat Dec 15 14:49:38 EST 2001:<E> <HTTP> java.lang.NoSuchMethodError
        at
org.apache.xerces.parsers.DOMParser.startElement(DOMParser.java:1131)

        at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XML
Validator.java:1284)
        at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumen
tScanner.java:1806)
        at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:949)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
        at
org.apache.xerces.validators.common.XMLValidator.resolveSchemaGrammar
(XMLValidator.java:2823)
        at
org.apache.xerces.validators.common.XMLValidator.parseSchemas(XMLVali
dator.java:2747)
        at
org.apache.xerces.validators.common.XMLValidator.bindNamespacesToElem
entAndAttributes(XMLValidator.java:2628)
        at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XML
Validator.java:1218)
        at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:938)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)


I am using SAX parser and I have validation, namespace, schemasupport
features turned on and did a setProperty call to specify where to find the
schema.  I am pretty desparate right now and need your help badly.

Thanks.

Reply via email to