<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2920.0" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=391323609-02112000>Hello,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=391323609-02112000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=391323609-02112000>I tried to parse an
XML-instance using jdom-b5 and Xerces 1.2.1 with the following
code-fragment</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=391323609-02112000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=391323609-02112000> SAXBuilder builder = new
SAXBuilder(true);<BR> try
{<BR> doc =
builder.build(path);<BR> } catch(Exception ex)
{<BR>
ex.printStackTrace();<BR>
}<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=391323609-02112000>and got the
following exception</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=391323609-02112000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=391323609-02112000>org.jdom.JDOMException: null:
null<BR> at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:349)<BR>
at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:422)<BR>
at
com.arp.xml.XMLModel.<init>(XMLModel.java:19)<BR>
at
XMLTree.<init>(XMLTree.java:21)<BR>
at XMLTree.main(XMLTree.java:43)<BR>Root cause:
java.util.EmptyStackException<BR> at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:917)<BR>
at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:331)<BR>
at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:422)<BR>
at
com.arp.xml.XMLModel.<init>(XMLModel.java:19)<BR>
at
XMLTree.<init>(XMLTree.java:21)<BR>
at XMLTree.main(XMLTree.java:43)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=391323609-02112000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=391323609-02112000>I tried to submit
the path with "path/file.xml", also with <A
href="file:///path/file">file:///path/file</A> , with a FileInputStream and
with a File. In any case, the result is the same. What surprises me most ist
that the parsing with Xerces alone - building a DOM-tree - works
fine.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=391323609-02112000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=391323609-02112000>Any idea?
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=391323609-02112000>Armin</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=391323609-02112000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=391323609-02112000>P.S.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=391323609-02112000>The files that fail
have a relative DTD-path in the system identifier and the DTD's include relative
external entity references.</SPAN></FONT></DIV></BODY></HTML>