Here's how we did away with this problem:

DocumentBuilderFactory factory = (DocumentBuilderFactory)new
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl();
factory.setAttribute("http://apache.org/xml/features/nonvalidating/load-exter
nal-dtd", Boolean.FALSE);



> -----Original Message-----
> From: David M. Hirst [mailto:[EMAIL PROTECTED] 
> Sent: Monday, April 15, 2002 4:08 PM
> To: [EMAIL PROTECTED]
> Subject: validating html
> 
> 
> Hi,
>       I'm using the parser to parse html as well as xml 
> documents. When I read in an html file, the parser is 
> generating the following error on
> me: java.io.FileNotFoundException, and the file that it is 
> trying to open is 
> http://www.w3.org/TR/WD-html-in-> xml/DTD/xhtml1-strict.dtd. 
> I've checked the w3c site, and 
> this file does not exist at that location. I tried turning 
> validation off on the parser using the setFeature method, but 
> that did not solve any problems. I could really use some help 
> on this one. I'm running close to a deadline.
> 
> Thanks in advance
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to