Khaled, thanks for the reply... comment/questions inline.

> Here are some suggestions:
> 1. Modify the parser to register an additional error handler 
> that is used
> by schema traversal to report errors.

.. at first glance I didn't see how to do that.  I'll look again but
remember thinking that the Scanner owns the SchemaTraversal instance and
doesn't allow me to hook into it.

> 2. Add a method to the parser to inquire whether any errors were
> encountered during parsing a schema.

er...how?  You mean just parse the schema and test for errors and if all
goes well parse the instance with the schema?  That might actually work but
I'd like to prevent the double parse if possible.  Since I'm caching the
grammar it might not be that bad since the schema only parse happens only
once.

Regards,
Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to