You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by "Tesar, Mark" <Ma...@Kingland.com> on 2002/04/27 00:21:31 UTC
Is this possible?
I'm a newbie, so please forgive me if this is too basic, but is it possible
to include an External Entity file in an XML document that is being parsed
by Xerces-J, either 1.4.4 or 2.0.1. I have tried this using both versions
in my Tomcat instance and I'm getting a Null Pointer Exception from Xerces.
As an example, can I do this:
web.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"web-app_2_3.dtd"
[
<!ENTITY % productBase SYSTEM "WEBX.PRODUCT.ENT">
%productBase;
]>
<web-app id="WebApp">
blah, blah, blah
Use Entity variables &SAMPLE1; and &SAMPLE2;
blan, blah, blah
</web-app>
Where WEBX.PRODUCT.ENT looks like this:
<!-- Product information -->
<!ENTITY SAMPLE1 "Stuff1">
<!ENTITY SAMPLE2 "Stuff2">
Is this supported? If not, why not and will it ever be? If it is
supported, any idea what I could be doing wrong?
Thanks,
Mark Tesar
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org