D
Daniel Frey
Hi
I am using XML to persist Java objects (with XStream). I have a general
leak of knowledge how ENTITY references within a XML can point to
another XML in a JAR. I.e. the following XML would reference a file
called file1.xml in the same directory:
<?xml version='1.0'?>
<!DOCTYPE root [ <!ENTITY file1 SYSTEM "file1.xml"> ]>
<root id="0">
&file1;
...
</root>
But I do not have both files in the same directory. Instead they are
located in different JARs. Do you know how to address an XML in a JAR?
Can I use kind of an absolute link like
<!DOCTYPE root [ <!ENTITY file1 SYSTEM
"/my/package/in/a/jar/file1.xml"> ]>
to point to the jared external XML. Any idea would be highly
appreciated.
Cheers
Daniel Frey
I am using XML to persist Java objects (with XStream). I have a general
leak of knowledge how ENTITY references within a XML can point to
another XML in a JAR. I.e. the following XML would reference a file
called file1.xml in the same directory:
<?xml version='1.0'?>
<!DOCTYPE root [ <!ENTITY file1 SYSTEM "file1.xml"> ]>
<root id="0">
&file1;
...
</root>
But I do not have both files in the same directory. Instead they are
located in different JARs. Do you know how to address an XML in a JAR?
Can I use kind of an absolute link like
<!DOCTYPE root [ <!ENTITY file1 SYSTEM
"/my/package/in/a/jar/file1.xml"> ]>
to point to the jared external XML. Any idea would be highly
appreciated.
Cheers
Daniel Frey