Yes, try something like this. This overrides the DTD-Entry in the xml-File.

         parserPtr->setDoNamespaces( true );
         parserPtr->setDoSchema( true );
         parserPtr->setValidationSchemaFullChecking( true );

         parserPtr->setExternalSchemaLocation( "SchemaID   SchemaPath+Name"
);

Hope, that helps

> -----Ursprüngliche Nachricht-----
> Von:  Andreas B. Thun [SMTP:[EMAIL PROTECTED]
> Gesendet am:  Dienstag, 29. Juli 2003 13:53
> An:   XERCES ML
> Betreff:      Validation with another DTD than specified in XML file
> 
> Hi!
> 
> Is there a way to force the DOMParser to validate
> a DTD which is different to the DTD specified
> in the XML file?
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE ConstraintTypes SYSTEM "constraint_template.dtd">
>                                      ^^^^^^^^^^^^^^^
>                                       should not be used
> 
> TIA,
> Andi
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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

Reply via email to