We have an XML repository where wee have all DTD's and Schemas in one directory, and the xml files in various other directories.  When we validate we create an InputSource for the XML file, and then set the systemID, this works for XML Schemas, but for DTD's we get this:
 
Stopping after fatal error: The markup in the document following the root element must be well-formed.
 
if we change setSystemID to setPublicID the xml file seems to validate just fine.
 
I don't get it, I thought by setting the systemID it would tell it where to look for the Schema or DTD.
 
Let me know.
 
Thanks,
 
Rob

Reply via email to