<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.89">
<TITLE>External DTD</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2 FACE="Arial">Hi All,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">String saxDriverClass = "org.apache.xerces.parsers.SAXParser";</FONT>
<BR><FONT SIZE=2 FACE="Arial">builder = new SAXBuilder (saxDriverClass, false);</FONT>
<BR><FONT SIZE=2 FACE="Arial">Document doc = builder.build(filename);</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">Our input (xml document) is from an outside source and will contain an external URL in the <!Doctype for sure. </FONT> <FONT SIZE=2 FACE="Arial">Any recommendation?</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thank you!</FONT>
<BR><B><I><FONT COLOR="#0000FF" SIZE=2 FACE="Times New Roman">Lai Lau</FONT></I></B><I></I>
<BR><I><FONT COLOR="#0000FF" SIZE=1 FACE="Times New Roman">Developer, B2B eBusiness </FONT></I>
<BR><I><FONT COLOR="#0000FF" SIZE=1 FACE="Times New Roman">Information Technology</FONT></I>
<BR><I><FONT COLOR="#0000FF" SIZE=1 FACE="Times New Roman">425-580-6319</FONT></I>
<BR><I><FONT COLOR="#0000FF" SIZE=2 FACE="Times New Roman">Lai.Lau@attws.com</FONT></I>
</P>
</BODY>
</HTML>