Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java / XML Parser: DTD file in /usr/home/...

Status
Not open for further replies.

swazik

Programmer
Aug 9, 2006
4
CA
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top