<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META content="MSHTML 5.00.3211.1700" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=421184317-25042001>Not
quite. A DTD can contain other things other than notations. Entities
in particular are important whether or not you validate.</SPAN></FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Malcolm Robbins
[mailto:mrobbins@paradise.net.nz]<BR><B>Sent:</B> Wednesday, April 25, 2001
4:19 AM<BR><B>To:</B> jdom-interest@jdom.org<BR><B>Subject:</B>
[jdom-interest] Possible parsing problem<BR><BR></DIV></FONT>
<DIV><FONT face=Arial size=2>I've discovered some parsing behaviour that seems
dubious to me. Could someone clarify if this is correct or
not?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>If I have an XML text stream that is well-formed
and I don't specify validation should SAXBuilder be able to build a Document
in all cases? </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>In particular I have the following problem: If
the XML document has a DOCTYPE with an external reference in it and the DTD is
not accessible the build fails! To me this seems to be the wrong
behaviour when we haven't requested validation. Shouldn't the rules
be:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>a) if you specified validation then the
DOCTYPE must be present and the file accessible so that validation can be
completed</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>b) if you don't specify validation then if the
DOCTYPE is present it follows the rules for formatting but accessibility
of the actual DTD is not necessary?</FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>regards</FONT></DIV>
<DIV><FONT face=Arial size=2>--malcolm</FONT></DIV></BLOCKQUOTE></BODY></HTML>