If you can get a DOM->SAX convertor you can use the same code that the SchemaReader does. Basically the SchemaReader uses a SAX DocumentHandler internally (just take a peek at the code to see which classes it uses). We'll try to provide more API hooks for that in the future. You might want to open an enhancement request on that if it's something your interested in seeing. Or if you can code it up and contribute it back, all the better.
Thanks,
--Keith
Matthias Jung wrote:
Hello all,
I have a DOM tree which represents an XML Schema instance.
For easier navigation and inspection I'd like use castor's schema object model and create a Schema object inctance from it.
The SchemaReader class creates a Schema object but always parses XML (file/string/InputSource).
Is there another way to create this object from an already parsed DOM Element / Tree?
Thanks Matthias
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
