>Sorry for the repetition, but I 'll be surprised if there wasn't a
>way to tell the parser the DTD to use ?

Prepare to be surprised; as far as I know, that is not supported.

In parsers which support plug-in "entity resolvers" you can (ab)use that
feature to substitute the contents of one DTD for another, but the
architecture of XML is that the "external subset" (the DTD) is supposed to
be specified by the document's author and only _checked_ by the application
which is reading it.

You might want to consider doing some text-based manipulations before the
document reaches the parser, to insert or change the DTD reference. But I
don't really recommend that, since it will tend to produce a more fragile
application than simply insisting that folks say what they mean.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to