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 re...@de.TRUMPF.com on 2003/07/29 15:19:19 UTC

AW: AW: AW: Validation with another DTD than specified in XML fil e

Yes I know, this was my error, I was talking about schemas.
As far as I know, DTDs can not be overridden. But you can turn them off:

void SAXParser::setLoadExternalDTD  (  const bool    newState  )   
 
Set the 'Loading External DTD' flag. 
This method allows users to enable or disable the loading of external DTD.
When set to false, the parser will ignore any external DTD completely if the
validationScheme is set to Val_Never. 

The parser's default state is: true. 
This flag is ignored if the validationScheme is set to Val_Always or
Val_Auto.

Parameters: 
newState  The value specifying whether external DTD should be loaded or not.

 
 


> -----Ursprüngliche Nachricht-----
> Von:	Andreas B. Thun [SMTP:abt@gmx.net]
> Gesendet am:	Dienstag, 29. Juli 2003 15:06
> An:	xerces-c-dev@xml.apache.org
> Betreff:	Re: AW: AW: Validation with another DTD than specified in
> XML file
> 
> >	parser->setExternalSchemaLocation("x.dtd");  // ??????????
> 
> Hmm, unfortunately this does not work.
> My program still searches for the DTD specified in the XML file...
> 
> 
> ---------------------------------------------------------------------
> 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


Re: AW: AW: AW: Validation with another DTD than specified in XML fil e

Posted by "Andreas B. Thun" <ab...@gmx.net>.
> As far as I know, DTDs can not be overridden. But you can turn them off:

Ooops! To turn it off does not help to me.
I need a possibility to validate against a
different one.. :-/


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