[jdom-interest] External DTD
arosen at silverstream.com
Mon Aug 13 10:02:30 PDT 2001
Look at the EntityResolver interface in SAX. You can call
builder.setEntityResolver() to install your own.
From: jdom-interest-admin at jdom.org
[mailto:jdom-interest-admin at jdom.org]On Behalf Of Lau, Lai
Sent: Thursday, August 02, 2001 8:12 PM
To: 'jdom-interest at jdom.org'
Subject: [jdom-interest] External DTD
I have a question regarding how to turn off the validation for DTD. I
build a JDOM document by using the following:
String saxDriverClass = "org.apache.xerces.parsers.SAXParser";
builder = new SAXBuilder (saxDriverClass, false);
Document doc = builder.build(filename);
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.
Our input (xml document) is from an outside source and will contain an
external URL in the <!Doctype for sure. Any recommendation?
Developer, B2B eBusiness
Lai.Lau at attws.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the jdom-interest