[xsd-users] Troubles while parsing XML documents with XSD

Boris Kolpackov boris at codesynthesis.com
Mon Jun 1 04:23:10 EDT 2009


Hi Artem,

Artem Shubovych <shybovycha at gmail.com> writes:

> But how to tell COLLADA XML document, which XSD to use? 

There are several ways to do this as described in Section 5.1, "XML Schema
Validation and Searching" in the C++/Tree Mapping Getting Started Guide:

http://www.codesynthesis.com/projects/xsd/documentation/cxx/tree/guide/#5.1


> I tried many variants, like:
> 
> <COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema"
> xsi:schemaLocation="collada_schema_1_4.xsd" version="1.4.1">

The xsi:schemaLocation attribute must contain namespace-schema pairs so
in your case it should be:

xsi:schemaLocation="http://www.collada.org/2005/11/COLLADASchema collada_schema_1_4.xsd"

Boris




More information about the xsd-users mailing list