Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Why no error message when xs:include fails? [Thread Next] Re: Why no error message when xs:include fails?To: NULL Date: 7/12/2008 2:21:00 PM
Gerben Abbink wrote:
> To validate XML against an XMLSchema in MSXML6 i use the Schema Cache. My
> XMLSchema ('example.xsd') contains an 'include' of another XMLSchema:
>
> <xsd:include schemaLocation="whatever.xsd"></xsd:include>
>
> To add my schema to the schema cache i do this:
>
> XMLDOMSchemaCache := CoXMLSchemaCache60.Create();
> XMLDOMSchemaCache.add('', 'example.xsd');
>
> When the included XMLSchema "whatever.xsd" does *not* exists, *no* exception
> is raised when i add "example.xsd". Why is this?
Have you set
XMLDOMSchemaCache.validateOnLoad = true
before adding the schema?
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
