Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Distributing xml schema in Jar file

843834Mar 21 2002 — edited Oct 12 2005
I 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 ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 9 2005
Added on Mar 21 2002
6 comments
528 views