Hello Evert,

From: "Evert Haasdijk" <[EMAIL PROTECTED]>
> Laurent,
> 
> You can set up an empty document that does have the DOCTYPE, create a parser
> for that and reuse that parser for new documents.
> 
> Here's an example of what that would look like that Alberto Massari sent me
> ages ago:
> 
> XMLByte* dummyXML="<?xml version=\"1.0\"?> <!DOCTYPE OrderProposalRequest
> SYSTEM \"dtd/OrderProposalRequest.dtd\"> <OrderProposalRequest/>";
[...]

Well, that's a good solution in that I don't have to modify the real document any 
longer.
Thanks for it.

Anyway, I'm still not completely satisfied : I have a lot of different incoming 
documents, and so a lot of different DTDs.

And this solution forces me to do this with each new type of document. The whole set 
of document types is not known at compile time.

Sorry for the repetition, but I 'll be surprised if there wasn't a way to tell the 
parser the DTD to use ?
Maybe with the setFeature ?? .... or setProperty ?? 


In any case, thank you for your help,

Laurent PETIT.



Reply via email to