I'm getting VerifyError's trying using the example xni.GrammarBuilder that was
given with the source code. The lines below from the sample will also give the
same result:
SymbolTable sym = new SymbolTable(BIG_PRIME);
XMLGrammarPreparser preparser = new XMLGrammarPreparser(sym);
XMLGrammarPoolImpl grammarPool = new XMLGrammarPoolImpl();
preparser.registerPreparser(XMLGrammarDescription.XML_SCHEMA, null);
Is there some feature or property I am supposed to set somewhere? And if so,
which ones? I'm not intending to use the schema for validation; I just want
to access the XSGrammar datastructures from the Grammar object.
Or perhaps a different question: Is there some other way to get a SchemaGrammar
or Grammar object? I've looked in the faq's but am still running into dead
ends.
Thanks in advance
Eric
Exception in thread "main" java.lang.VerifyError: (class: org/apache/xerces/imp
/xs/traversers/XSDHandler, method: getSchema signature: (Ljava/lang/String;Lorg
apache/xerces/xni/parser/XMLInputSource;ZSLorg/w3c/dom/Element;)Lorg/w3c/dom/Do
ument;) Incompatible object argument for function call
at org.apache.xerces.impl.xs.XMLSchemaLoader.<init>(XMLSchemaLoader.jav
:237)
at org.apache.xerces.impl.xs.XMLSchemaLoader.<init>(XMLSchemaLoader.jav
:199)
at newesttest.main(newesttest.java:5)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]