title: Solve JAXB "name collision in the ObjectFactory class" problem with customisation
body: <p>Executing a "xjc" command on <a href="http://schemas.opengis.net/kml/2.2.0/" rel="noreferrer">these xsd files</a> returns a <code>Two declarations cause a collision in the ObjectFactory class</code> because there are 2 elements named "Scale" and "scale".</p>
  
  <p>According to <a href="http://jaxb.java.net/guide/Dealing_with_errors.html#Two_declarations_cause_a_collision_in_the_ObjectFactory_class" rel="noreferrer">this page</a>, this problem may be solved by customizing the xsd files with <code>&lt;factoryMethod&gt;</code>. </p>
  
  <p>Do you know how to do that? Do you have an example of binding file to do that?</p>