Results 1 to 4 of 4

Thread: Collada file validation with XSD schema

  1. #1
    ypuech
    Guest

    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 :

    Code :
    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 :
    Code :
    cache.add("http://www.collada.org/2005/COLLADASchema",ColladaXSDDoc);

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

    Yannick

  2. #2
    Senior Member
    Join Date
    Aug 2005
    Location
    California
    Posts
    165
    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

  3. #3
    Senior Member
    Join Date
    Aug 2004
    Location
    California
    Posts
    771

    Re: Collada file validation with XSD schema

    Quote Originally Posted by ypuech
    Code :
    	ColladaXSDDoc.load("COLLADASchema1.3.1.xsd");
    Where did this schema file name come from?

  4. #4
    Senior Member
    Join Date
    Aug 2005
    Location
    California
    Posts
    165
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •