You must have another jar file in your classpath that has DOM Level 1
implementation inside it.

As for the mailing list, please post your question at xerces-j-dev mailing
list next time (you need to subscribe to the list before you can post),
xerces-dev is almost deserted.
_____


Eric Ye * IBM, JTC - Silicon Valley * [EMAIL PROTECTED]

----- Original Message -----
From: "Vijayanand" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 12, 2000 11:00 PM
Subject: Schema Validating SAXParser


> Hi,
>     I am  new to this group.I hope I may get the solution here..My Query
> is..
> "How to set features or properties for the SAXParser to validate XML with
> XML Schema.."
> Can any one have idea regarding this....I am badly in need of this..I
tried
> it by setting the Features of
>  "parser.setFeature("http://xml.org/sax/features/validation",true);
>   parser.setFeature("http://xml.org/sax/features/namespaces",true);
>
>
parser.setFeature("http://apache.org/xml/features/validation/schema",true);"
>
> Its working fine with DTD..But with Schema,while parsing...it simply shows
> the error like this..
>
> --------------------------------------------------------------------------
--
> Exception in thread "main" java.lang.NoSuchMethodError
>         at
> org.apache.xerces.parsers.DOMParser.startElement(DOMParser.java:1039)
>         at
>
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
> or.java:823)
>         at
>
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
> LDocumentScanner.java:989)
>         at
>
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
> java:380)
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
>         at
>
org.apache.xerces.validators.common.XMLValidator.resolveSchemaGrammar(XMLVal
> idator.java:2198)
>         at
>
org.apache.xerces.validators.common.XMLValidator.bindNamespacesToElementAndA
> ttributes(XMLValidator.java:2086)
>         at
>
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
> or.java:815)
>         at
>
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
> r.java:1852)
>         at
>
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
> LDocumentScanner.java:1000)
>         at
>
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
> java:380)
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
>         at XercesCore.main(XercesCore.java:40)
> --------------------------------------------------------------------------
--
> ----
>
> I will be thankful,if anyone suggest me some idea..Thanx in advance....
>
> Regards,
> Vijay.
>
>
>
>
>
>
>
>
>

Reply via email to