I want to use a schema from a JAR file with mxquery. The way I do this appears to be Context.addSchemaLocation… but this takes a string as input, and my schema is in the JAR file. I found this post that suggests I do this: http://marc.info/?l=xerces-j-user&m=108370270512800&w=2
This leaves me with the question of how to find the path to the currently executing JAR file… or even better, maybe I can just pass the schema via a Reader or something into the mxquery call?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I want to use a schema from a JAR file with mxquery. The way I do this appears to be Context.addSchemaLocation… but this takes a string as input, and my schema is in the JAR file. I found this post that suggests I do this: http://marc.info/?l=xerces-j-user&m=108370270512800&w=2
This leaves me with the question of how to find the path to the currently executing JAR file… or even better, maybe I can just pass the schema via a Reader or something into the mxquery call?