can't exclude DTD

"Andy Gup" <[email protected]>
Newsgroups gmane.text.xml.sax.general
Message-ID <[email protected]>
I'm having troubles excluding a DTD. I've even tried setValidation(false); but I'm still getting dtd not found errors. Does any experts have any thoughts?


public void runLoader()

{

String xmlfile = "stopDepartures.xml";

appLog.appendLog("XMLParser: Starting parse operation");


try

{

SAXBuilder parser = new SAXBuilder();

parser.setValidation(false);

// Parse the document

Document document = parser.build( xmlfile );

// Start by passing the root element

process(document.getRootElement());



}// end try

catch (Exception e)

{

e.printStackTrace();

appLog.appendLog("ERROR" + e);

}

System.out.println(arrayList);

appLog.appendLog("XMLParser: End parse operation");

}// end runLoader


Thanks,

-Andy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.