You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by he...@edb4tel.com on 2001/10/26 14:06:10 UTC

Loading DTD-file

Hello!

I'm a newbie in the Xerces world, and would like to know if 
there exist any way to dynamically set the location of the
DTD-file. That is; I want to override the location given
in the header of the XML-file with code.

Best regards,
Helge Fredriksen

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: Loading DTD-file

Posted by Juergen Hermann <jh...@web.de>.
On Fri, 26 Oct 2001 14:06:10 +0200, helge.fredriksen@edb4tel.com wrote:

>I'm a newbie in the Xerces world, and would like to know if 
>there exist any way to dynamically set the location of the
>DTD-file. That is; I want to override the location given
>in the header of the XML-file with code.

You need to create and register an EntityResolver (see the docs).


Ciao, Jürgen



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: Loading DTD-file

Posted by Patrick Lok <pl...@inktomi.com>.
Check out samples/Redirect/RedirectHandlers.cpp.

Patrick

At 02:06 PM 10/26/01 +0200, you wrote:
>Hello!
>
>I'm a newbie in the Xerces world, and would like to know if
>there exist any way to dynamically set the location of the
>DTD-file. That is; I want to override the location given
>in the header of the XML-file with code.
>
>Best regards,
>Helge Fredriksen
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org