This guy has reckons you can turn off DTD checking
http://www.isocra.com/blogs/index.php?/archives/5-Making-Xerces-ignore-a-DTD.html
Tools like Xerces and Xalan are very good, but pretty heavy.
If you google you will also find some very light weight sax parsers out
there.
Most of them dont even check DTD, probably ok if all you doing is adding a
few parameters.
----- Original Message -----
From: "Andrew Friebel" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Monday, July 02, 2007 3:42 AM
Subject: WEB.XML file parsing
I am having trouble parsing a web.xml file using SAX. The war file will
deploy with no hassles, however, I am writing a local program that will
allow me to change the web.xml file locally before distribution.
My problem is the DTD definition in the web.xml file. I require the DTD
file definition, yet when I try and parse the file with the DTD
definition,
I keep getting a connection timeout error. When I remove the DTD
definition, the file is parsed with no issues.
How do I get around the timeout issue when parsing the web.xml file with
the
DTD definition?
The DTD definition is:
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
Regards,
Andrew
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]