<!--
//////////////////////////////////////////////////////////////////////
// title ......: Customized JAXB Bindings for COLLADA 1.3.1
// copyright ..: Copyright 2005 Whoola, Inc.
// license ....: Licensed under the Academic Free License version 2.1
// version ....: $Date: 2005/08/23 20:32:23 $
// since ......: 2005-08-22
// author .....: David Wallace Croft (www.CroftSoft.com)
//
// JAXB converts an XML Schema into Java classes. Version 1.3.1 of
// COLLADASchema.xsd introduced a conflict for JAXB in that there are
// two "source" elements under "mesh". This JAXB customization file
// resolves the problem by naming the first one "source1" and the
// second "source2" so that the data can be accessed via the methods
// "getSource1()" and "getSource2()", respectively.
//
// For more information, please see:
// http://collada.org/public_forum/viewtopic.php?t=212
//////////////////////////////////////////////////////////////////////
-->
<jxb:bindings
version="1.0"
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<jxb:bindings
schemaLocation="COLLADASchema.xsd"
node=
"/xs:schema/xs:element[@name='mesh']/xs:complexType/xs:sequence">
<jxb:bindings node="xs:element[@ref='source' and position()=1]">
<jxb:property name="source1"/>
</jxb:bindings>
<jxb:bindings node="xs:element[@ref='source' and position()=3]">
<jxb:property name="source2"/>
</jxb:bindings>
</jxb:bindings>
</jxb:bindings>
This .xjb file will also be available for download in about a day from here:
http://cvs.sourceforge.net/viewcvs.py/w … t/collada/