Hi, 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? How can i be sure the included schema is actually included? thanks, - Gerben Abbink
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/