<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<TITLE>External DTD</TITLE>
<META content="MSHTML 5.00.2919.6307" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=086390117-13082001>Look
at the EntityResolver interface in SAX. You can call builder.setEntityResolver()
to install your own.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=086390117-13082001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=086390117-13082001>Alex</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> jdom-interest-admin@jdom.org
[mailto:jdom-interest-admin@jdom.org]<B>On Behalf Of </B>Lau,
Lai<BR><B>Sent:</B> Thursday, August 02, 2001 8:12 PM<BR><B>To:</B>
'jdom-interest@jdom.org'<BR><B>Subject:</B> [jdom-interest] External
DTD<BR><BR></DIV></FONT>
<P><FONT face=Arial size=2>Hi All,</FONT> </P>
<P><FONT face=Arial size=2>I have a question regarding how to turn off the
validation for DTD. I build a JDOM document by using the
following:</FONT> </P>
<P><FONT face=Arial size=2>String saxDriverClass =
"org.apache.xerces.parsers.SAXParser";</FONT> <BR><FONT face=Arial
size=2>builder = new SAXBuilder (saxDriverClass, false);</FONT> <BR><FONT
face=Arial size=2>Document doc = builder.build(filename);</FONT> </P>
<P><FONT face=Arial size=2>However, when we put an external URL (outside our
company firewall), we received Java Null pointer exception during the
build. So, I tried adding : builder.setValidation(false), it will cause
system timeout. Seems to me the command above did not actually turn off
the validation. </FONT></P>
<P><FONT face=Arial size=2>Our input (xml document) is from an outside source
and will contain an external URL in the <!Doctype for
sure. </FONT> <FONT face=Arial size=2>Any
recommendation?</FONT></P>
<P><FONT face=Arial size=2>Thank you!</FONT> <BR><B><I><FONT color=#0000ff
face="Times New Roman" size=2>Lai Lau</FONT></I></B><I></I> <BR><I><FONT
color=#0000ff face="Times New Roman" size=1>Developer, B2B eBusiness
</FONT></I><BR><I><FONT color=#0000ff face="Times New Roman"
size=1>Information Technology</FONT></I> <BR><I><FONT color=#0000ff
face="Times New Roman" size=1>425-580-6319</FONT></I> <BR><I><FONT
color=#0000ff face="Times New Roman" size=2>Lai.Lau@attws.com</FONT></I>
</P></BLOCKQUOTE></BODY></HTML>