C
cochrane68
I'm trying to access an XML snippet based on the classpath. I know how
to use a snippet based on the absolute path of a file using:
<!DOCTYPE project [
<!ENTITY test SYSTEM "file:C:\Documents and
Settings\chris\Desktop\test2.xml">
]>
However, this is going to be used as part of a J2EE application, and I
need a way to access an XML snippet based on the classpath. So my
DOCTYPE declaration would look something like:
<!DOCTYPE project [
<!ENTITY test SYSTEM "resource:test2.xml">
]>
Is there anyway to do this directly in the XML, or does XML have no
concept of a classpath?
to use a snippet based on the absolute path of a file using:
<!DOCTYPE project [
<!ENTITY test SYSTEM "file:C:\Documents and
Settings\chris\Desktop\test2.xml">
]>
However, this is going to be used as part of a J2EE application, and I
need a way to access an XML snippet based on the classpath. So my
DOCTYPE declaration would look something like:
<!DOCTYPE project [
<!ENTITY test SYSTEM "resource:test2.xml">
]>
Is there anyway to do this directly in the XML, or does XML have no
concept of a classpath?