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