Hi Ananda,

First, questions like this are better posted to the xerces-j-user list;
you're much more likely to get a quick response there.

Looks to me like you've got a classpath problem.  xerces.jar likes to be
the first thing on the classpath, since it tends to have more up-to-date
DOM and SAX packages than do other jarfiles.  So make sure that no other
jarfiles are on your classpath before Xerces that contain the org.w3.dom
package, and you should be fine.

Hope this helps,
Neil

Neil Graham
XML Parser Development
IBM Toronto Lab
Phone:  416-448-3519, T/L 778-3519
E-mail:  [EMAIL PROTECTED]



[EMAIL PROTECTED] on 08/06/2001 06:38:58 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  XML parser 1.4.2




Hi,
I get this error when I try to run SAX2Count which comes with the zip
files. I had the validation on and used the personal-schema.xml file of the
installation zip.
Thanks,
Ananda

Exception in thread "main" java.lang.NoSuchMethodError
        at
org.apache.xerces.parsers.DOMParser.startElement(DOMParser.java:1131)
        at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1214)

        at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1862)

        at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1005)

        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)

        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
        at
org.apache.xerces.validators.common.XMLValidator.resolveSchemaGrammar(XMLValidator.java:2749)

        at
org.apache.xerces.validators.common.XMLValidator.parseSchemas(XMLValidator.java:2673)

        at
org.apache.xerces.validators.common.XMLValidator.bindNamespacesToElementAndAttributes(XMLValidator.java:2614)

        at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1152)

        at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1862)

        at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1005)

        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)

        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1122)
        at sax.SAX2Count.print(SAX2Count.java:152)
        at sax.SAX2Count.main(SAX2Count.java:381)



(See attached file: SAX2Count.java)(See attached file: personal.xsd)(See
attached file: personal-schema.xml)
(See attached file: SAX2Count.java)(See attached file: personal.xsd)(See
attached file: personal-schema.xml)
---------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

SAX2Count.java

personal.xsd

personal-schema.xml

---------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to