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 "U. Meier" <uw...@interactivesys.com> on 2001/01/18 16:51:07 UTC
-> java.lang.NullPointerException
Hello,
when I'm using SYSTEM Entities, I get a NullPointerException from the
DOMParser.
I'm using JDK 1.3 (I also tried JDK 1.2.2) and the xerces 1.2.3 (java).
It works fine with the c++ xerces.
any ideas what's wrong?
-Uwe
Here my xml files:
---------------------------------
test.xml
----------------------------------
<?xml version="1.0" standalone="no"?>
<!DOCTYPE test [
<!ELEMENT test (foobar*)>
<!ELEMENT foobar (#PCDATA)>
<!ENTITY foo SYSTEM "foobar.xml">
]>
<test>
<foobar/>
&foo;
</test>
---------------------------------------
foobar.xml
---------------------------------------
<foobar/>
When calling the parse method a get:
java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:965)
at XmlParser.<init>(XmlParser.java:56)
at XmlParser.main(XmlParser.java:22)
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org