*
The moose likes XML and Related Technologies and the fly likes How do I turn off DTD retrieval within Xerces and Xalan? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How do I turn off DTD retrieval within Xerces and Xalan?" Watch "How do I turn off DTD retrieval within Xerces and Xalan?" New topic
Author

How do I turn off DTD retrieval within Xerces and Xalan?

Teddy Wang
Greenhorn

Joined: Sep 17, 2003
Posts: 19
I'm building an intranet application which resides behind a firewall which will probably not allow me to retrieve DTD's for parsing or transforming purposes. How do I de-activate teh DTD retrieval?

Thanks!
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
DocumentBuilderFactory#setValidating(false)
SAXParserFactory#setValidating(false)


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How do I turn off DTD retrieval within Xerces and Xalan?
 
Similar Threads
I want to develop a simple application which is not complex
XML Learning
Can I ignore validation against the DTD?
Extending DTD
DTD aware editor