Hi,
Trying to mastering the obscure science of XML validation, I've run into the following problem:
- I request a webservice through HTTP. It sends me back a response (I don't have ANY control on that response) that has
<!DOCTYPE OPS_envelope SYSTEM "ops.dtd"> in the header.
- When I parse this XML, I get a java.io.FileNotFoundException: /usr/home/app/ops.dtd when I call javax.xml.parsers.DocumentBuilder.parse
- All I want to do is get the XML parser to look for that file in the tomcat/webapps/myWebapps/.../
Please note:
- I can't change that DTD URI (it would be so simple if I could).
- /usr/home/app/ is somehow the folder that we use for FTP download.
- On windows, it was looking for that file in the /tomcat/bin directory.
Thank you for your help !
Swaz
Trying to mastering the obscure science of XML validation, I've run into the following problem:
- I request a webservice through HTTP. It sends me back a response (I don't have ANY control on that response) that has
<!DOCTYPE OPS_envelope SYSTEM "ops.dtd"> in the header.
- When I parse this XML, I get a java.io.FileNotFoundException: /usr/home/app/ops.dtd when I call javax.xml.parsers.DocumentBuilder.parse
- All I want to do is get the XML parser to look for that file in the tomcat/webapps/myWebapps/.../
Please note:
- I can't change that DTD URI (it would be so simple if I could).
- /usr/home/app/ is somehow the folder that we use for FTP download.
- On windows, it was looking for that file in the /tomcat/bin directory.
Thank you for your help !
Swaz