This page describes the process of turning off validation when you get the following error.
java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
Tried to do the following but no luck.
SAXParserFactory factory = SAXParserFactory.newInstance(); factory.setValidating(false);
The DTD is still downloaded from the Web site indicated in the XML document.
It worked by doing the following: