Distributing xml schema in Jar file
843834Mar 21 2002 — edited Oct 12 2005I am using an xml schema to validate an incoming xml document and want to distribute the schema as a resource file in the application Jar file.
The schema location entered in the xml document can be overridden in the Java program by setting a parser property "http://apache.org/xml/properties/schema/external-schemaLocation". This relates a namespace to the schema location on the file system, either absolute or relative (following so far ??).
Any ideas about how to define the schema location if the file is stored as a resource in a Jar file ?