W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2002

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

From: Philippe Le Hegaret <plh@w3.org>
Date: 10 Oct 2002 17:07:25 -0400
To: Zeljko VELAJA <zvelaja@visualfriendly.com>
Cc: WWW DOM <www-dom@w3.org>
Message-Id: <1034284046.908.234.camel@jfouffa>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:56 GMT