You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Brett Knights <br...@tanner.com> on 2000/07/07 00:01:18 UTC

External Entities are not expanded

Hi,

Xerces 1.1.2 is not expanding external entities.

I can display the main file in IE5. It expands the entities as expected.

I am running under jdk 1.3 :
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

I am running Xerces under jaxp by setting the system property for the
DocumentBuilderFactory
e.g.
java -cp
%CP% -Xms16m -Xmx48m -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.x
erces.jaxp.DocumentBuilderFactoryImpl org.apache.jserv.JServ "%properties%"

This does run Xerces - I set a simple System.out.println in
org\apache\xerces\readers\DefaultEntityHandler.java
and verified that it is recognizing there is an external entity and that it
correctly parses the system id.

FWIW by the time the code is done with line 739:
        fSource = fResolver == null ? null :
fResolver.resolveEntity(fPublicId, fSystemId);
fSource is still null



^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Brett Knights                                Tanner Research, Inc.
MIS Analyst                                 2650 E. Foothill Blvd.
brett.knights@tanner.com                       Pasadena, CA  91107
voice  626-432-5767                               fax 626-792-0300
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^