> Hi All,
Hi.
> Quick question:
>
> Why does Xerces looks for the DTD file in the directory you are
> running your application from, and not in the same directory
> as the XML file?
A normal project might not be limited to one directory, but to a
directory structure. Same with xml files spread over the internet. But
you still might have the DTDs local that validate those docs.
> Is there a way to change this behaviour?
Yes, I'd set the working dir to the directory where the xml files (and
in your case the DTD) reside using:
Properties prop = System.getProperties();
prop.setProperty("user.dir", "c:/xmlfiles")
Regards.
--
Bjoern Martin [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]