Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Validating Against Schema in a Jar File

Anonymous
2010-02-20
2013-06-05

  • Anonymous
    2010-02-20

    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?