Game Development Reference
In-Depth Information
Figure 9.6. XML Notepad won't load invalid XML documents.
Save the file, and make sure it now passes the validation. An XML editor
will always export valid XML documents, so it will make sure that the <camera
is matched with the corresponding camera/> end tag automatically. This alone
makesanXMLeditorsabettertooltoeditCOLLADAdocuments.
XML notepad will refuse to open nonvalid XML documents. Let's try to open
the duck-err1.dae document; it throws an error, the same error reported by our
validator, and proposes to edit the file with the default notepad, which is not
recommended in general. Editing nonvalid XML documents is best done with
Visual Studio or Vi. In practice, applications export valid XML documents that
may or may not be valid COLLADA documents, so this should not be a common
problem to deal.
9.5 Coherency Test
The coherency test is a more advanced COLLADA document validation software.
Not only does it test the document for a match with the COLLADA schema, but
it also implements a set of rules that the schema alone cannot detect. For example,
the coherency test will make sure that all the elements referenced can be found in
the document. The coherency test is available in source code or precompiled for
Windows, Linux, and Mac OS on Sourceforge at http://sourceforge.net/projects/
colladarefinery/files/ ( COL1).
For convenience let's download the executable, rename it to coherencytest.exe,
and put it in a directory already in the path so we can invoke it from any directory
under the cmd prompt. On Windows, I recommend creating a bin directory under
Search WWH ::




Custom Search