Re: How to dynamically specify a path to a DTD file

On Thu, 2002-10-10 at 11:42, Zeljko VELAJA wrote:
> 
> I would like to specify dynamically the path of a DTD file to the XML parser
> : I've include a DOCTYPE declaration with a SYSTEM call to a relative URL.
> The implementation of the DOMParser I'm using is Xerces for Java. I would
> like to know if there is a way to resolve the relative URL of the SYSTEM
> call programatically ? Much better : I'd like also, if it's possible, to
> create the DTD InputSource myself, so as to keep full control upon input and
> output in my program. Thanks for your help.

There is no way to set up the path to the DTD in DOM 1&2. DOM 3 has a
way to validate against a DTD specified with the location.

Philippe

Received on Thursday, 10 October 2002 17:07:28 UTC