We have an XML file which needs to be validated using a custom dtd on a scheduled server agent. We have run this on the client in the notes root directory with no problems but wen we run it on the server via a scheduled agent, we get this error from the notesDOMParser object when attempting to process it.
<?xml version='1.0'?>
An exception occurred! Type:XMLPlatformException, Message:Could not open file: INTERCEPT.DTD
DOM parser operation failed
The XML doctype looks like :
<?xml version="1.0" encoding="UTF-8"?>
We have tried placing this intercept.dtd in multiple locations, notes root directory, notes data root directory, xmlschemas directory, and the domino/html directory with no success. The documentation, (as far as we could find), does not provide any instructions on where to place a custom “dtd”.
Any advice appreciated.
Subject: Re: What is the default server location for Custom DTD’s
Hi Giulio,try to set current dir:
Chdrive(Left$(DTD_SOURCE_PATH,2))
Chdir(DTD_SOURCE_PATH)
Hope this will resolve your issue…
Bye, T.
Subject: Just put it in the data directory. (Better late than never ?)
Solved this some time ago.
For what it’s worth. Simply put the DTD’s in the server’s data directory. I was running a scheduled loading process on the server. It’s the same for the client as well.
Subject: What is the default server location for Custom DTD’s
Giulio,
did you find a solution?
I’m getting the same error, running a “domparser.Process” on a client.
I have run it using a dtd placed on notes root directory for weeks and hundreds of tests, and it always worked (on different machines, too).
Today I had problems, and it worked after placing the dtd in notes data directory.
Did calling chdir solve your problem? if I print curdir$ just before “Process” I obtain a completely different directory.
Thanks, stefano
Ciao