Daniel Frey wrote:
> Do you know how to address an XML in a JAR?
XML doesn't understand the concept of jarfiles. All it works with is
URIs. So there's no guaranteed portable solution.
Many (not all) XML processors will let you plug in an "entity resolver"
or "uri resolver", which is code you've written to describe where and
how they should try to search when attempting to retrieve additional
information. If you write one that understands which jarfiles you want
to search, and how to do that search and pull the data out of them, that
will do what you want.
*SOME* processors may have this kind of capability built in -- I've seen
a few programs that understand URIs starting with jar: as requests to
retrieve one entry from a jarfile -- but you'd have to check the docs
for your program.
There may be other solutions -- but again, that's going to be a matter
of exactly what your software supports. And if you can't make it work
with your tools, you may have to either change tools or do something
different.
|