Thanks for your quick response.
Maybe I should clarify. My xml document (textXML in the code below) does specify the DTD, but I get an exception because the DTD cannot be found. Here is my code:
SAXBuilder builder = new SAXBuilder();
builder.setValidation(true);
// Create the document
StringReader xmlreader = new StringReader(testXML);
Document
doc = builder.build(xmlreader);
When I run this code, I get the following exception:
org.jdom.JDOMException: Error on line 0: File "TXLife2.4.99.01.dtd" not found.
So, I guess the question is: How do I make my Java program aware of the location of my DTD?
I am using VAJ for my
IDE.
Thanks!