java

Parsing XML using schemas in a JAR file

I've just been working away at a nasty technical problem, and thought that since nobody else seems to have solved it that well, I should post the results. The problem is: I'm developing a Java web service that needs to parse an XML file. I have a schema written, and everythings works fine in the IDE. When you want to actually run it, though, things get a bit nasty. Basically, I didn't want to have to put the schema somewhere special in the file system, or require it to be retrieved constantly through HTTP.

Syndicate content