2


I have written a little library. Now I want to let the user configure the lib with a xml file just like in spring. I have a xsd file to validate the xml config and therefore I have a few questions. Is it possible to achive this spring like configuration with a noNamespaceSchemaLocation? Where should I put the xsd in the lib in order to access it form both lib an outside? And how can I get access to the xsd without needing an absolute path? Currently it's more important to get the functionallity inside the lib than from outside.

Thanks, Tom

Pascal Thivent
  • 549,808
  • 132
  • 1,049
  • 1,115
Tom
  • 23
  • 3

1 Answers1

0

Questions

  1. Is it possible to achive this spring like configuration with a noNamespaceSchemaLocation?
  2. Where should I put the xsd in the lib in order to access it form both lib an outside?
  3. And how can I get access to the xsd without needing an absolute path?

Tries to answer ;)

1) Don't know Spring. " NonameSpaceSchemaLocation" support is parser specific i think.

2,3) How to find resources in the Jar

Community
  • 1
  • 1
Houtman
  • 2,739
  • 2
  • 22
  • 32