I have tried to answer your question
here.
Where is your DTD? If it is an external resource, then your XML file should have a reference to it. If it is internal to the XML document then it should be a part of your XML
string. As long as one of these two conditions are satisfied, a validating parser will be able to locate your DTD and validate the document against the definition.
Does that help?
------------------
Ajith Kallambella M. Sun Certified Programmer for the Java�2 Platform.
IBM Certified Developer - XML and Related Technologies, V1.