Collada file validation with XSD schema

Hello,

I want to validate a Collada file using MSXML components.
I’m having problems when adding Collada schema :


function ValidateCollada(i)
{
	//Load XML Schema Documents
	var ColladaXSDDoc = new ActiveXObject("Msxml2.DOMDocument.4.0");
	ColladaXSDDoc.async = false;
	ColladaXSDDoc.load("COLLADASchema1.3.1.xsd");
	
	var cache = new ActiveXObject("Msxml2.XMLSchemaCache.4.0");
	cache.add("http://www.collada.org/2005/COLLADASchema",ColladaXSDDoc); 
	
	var ColladaDoc = new ActiveXObject("Msxml2.DOMDocument.4.0");
	xmlDoc.async = false;
	xmlDoc.schemas = cache;
	
	etc.
}

I’m having a COM error when executing :


cache.add("http://www.collada.org/2005/COLLADASchema",ColladaXSDDoc); 

I think I’m probably not using the right namespace.
An idea ?

Yannick

I don’t really have any idea on what’s going on. We don’t use the MSXML components here.

I can tell you though that you are using the correct namespace for the 1.3.1 schema that you loaded.

-Andy

Where did this schema file name come from?

Marcus,
Thats one of the schemas provided in the doc folder in the DOM.
I provide the current 1.4 schema named COLLADASchema.xsd and the 1.3.1 schema name COLLADASchema1.3.1.xsd for reference since the DOM is build for those two versions.

-Andy