Hello there, I ahve been through the xerces archives but I wa snot able to find anythign so I am wondering if anyone here can give me some ideas. I am implmenting a web application using Tomcat 3.3.1, Windows NT and Xerces 2.0.2.
The problems starts when I am validating an XML file against a DTD where I always get a MalformedURLException. The XML file and the DTD are both in the same folder. The line in the xml file that contains the dtd is: <!DOCTYPE WTG SYSTEM "WTGData.dtd"> For some weird reason (or for some reason weird to me at least) it expects the DTD file to be in a http-like form. If I copy the DTD into my webapps folder : and do a <!DOCTYPE WTG SYSTEM "http://127.0.0.1:8080/mywebapp/WTGData.dtd"> then everything works fine. If I also do a: <!DOCTYPE WTG SYSTEM "file:C:/xmlfiles/WTGData.dtd"> everything works fine as well. It is only when I have the: <!DOCTYPE WTG SYSTEM "WTGData.dtd"> line that causes the problems and throws the exception. I cannot change the XML file itself to alter the line with the DTD since the XML file is automatically generated by another department. Any help or suggestions on thsi is highly appreciated. Regards __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
