title: xjc binding customization does not work in jaxb 2.1.3. It works in jaxb 2.0
body: <p>I developed a binding customization file in jaxb 2.0 in JDK 1.6.0 and it worked fine.</p>
  
  <p>Now I'm using jaxb 2.1.3 in JDK 1.6.0_13 and it gives me errors:</p>
  
  <blockquote>
    <p>Error xxx shows up in more than one properties</p>
  </blockquote>
  
  <p>which is what the binding file is suppose to be handling by renaming them.</p>
  
  <p>What happened between 2.0 and 2.1.3 that I need be aware of and what do I need to change.  I've searched near and far and can't figure it out.
  Thanks so much for your help.</p>
  
  <p>I'm using the binding customization file because the schema has a couple property names that would get a "catch-all" property because the field name is used by two different parts of a schema. The 2 fields are called expression and assertion</p>
  
  <p>I get the following errors parsing a schema:</p>
  
  <pre><code>[ERROR] Element "assertion" shows up in more than one properties.
  line 649 of file:/D:/jaxb/extract-xjbfix/090403-0_901-Packet-Schema.xsd
  
  [ERROR] The following location is relevant to the above error
  line 647 of file:/D:/jaxb/extract-xjbfix/090403-0_901-Packet-Schema.xsd
  
  [ERROR] Element "expression" shows up in more than one properties.
  line 518 of file:/D:/jaxb/extract-xjbfix/090403-0_901-Packet-Schema.xsd
  
  [ERROR] The following location is relevant to the above error
  line 516 of file:/D:/jaxb/extract-xjbfix/090403-0_901-Packet-Schema.xsd
  
  [ERROR] Element "expression" shows up in more than one properties.
  line 522 of file:/D:/jaxb/extract-xjbfix/090403-0_901-Packet-Schema.xsd
  
  [ERROR] The following location is relevant to the above error
  line 516 of file:/D:/jaxb/extract-xjbfix/090403-0_901-Packet-Schema.xsd
  
  Failed to parse a schema.
  </code></pre>
  
  <p>my xjc command is :</p>
  
  <pre><code>xjc -extension 090403-0_901-Packet-Schema.xsd -b binding.xjb
  </code></pre>
  
  <p>my xjb file is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jxb:bindings version="2.0"
            xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
            xmlns:xs="http://www.w3.org/2001/XMLSchema"
            xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
            jxb:extensionBindingPrefixes="xjc" &gt;
  
  &lt;jxb:bindings schemaLocation="090403-0_901-Packet-Schema.xsd" node="/xs:schema"&gt;
  
  &lt;jxb:globalBindings&gt;
      &lt;xjc:superClass name="com.pw.ietm.XMLExtract.IetmElement"/&gt;
  &lt;/jxb:globalBindings&gt;
  
  &lt;jxb:schemaBindings&gt;
       &lt;jxb:package name="com.pw.ietm.XMLExtract"/&gt;
  &lt;/jxb:schemaBindings&gt;
  
  &lt;!-- Modify Expression because expression is used in two different parts of a schema --&gt;
  
  &lt;jxb:bindings node="//xs:complexType[@name='expression_comtype']/xs:choice/xs:sequence[position()=1]/xs:element[@name='expression'][position()=1]"&gt;
      &lt;jxb:property name="expressionFirst"/&gt;
  &lt;/jxb:bindings&gt;
  
  &lt;jxb:bindings node="//xs:complexType[@name='expression_comtype']/xs:choice/xs:sequence[position()=1]/xs:element[@name='expression'][position()=2]"&gt;
      &lt;jxb:property name="expressionSecond"/&gt;
  &lt;/jxb:bindings&gt;
  
  &lt;jxb:bindings node="//xs:complexType[@name='expression_comtype']/xs:choice/xs:sequence[position()=2]/xs:element[@name='expression']"&gt;
      &lt;jxb:property name="expressionAlone"/&gt;
  &lt;/jxb:bindings&gt;
  
  &lt;!-- Modify Loop-step because assertion is used in two different parts of a schema --&gt;
  
  &lt;jxb:bindings node="//xs:complexType[@name='loop-step_comtype']/xs:sequence/xs:element[@name='assertion'][position()=1]"&gt;
      &lt;jxb:property name="assertionInitial"/&gt;
  &lt;/jxb:bindings&gt;
  
  &lt;jxb:bindings node="//xs:complexType[@name='loop-step_comtype']/xs:sequence/xs:element[@name='assertion'][position()=2]"&gt;
      &lt;jxb:property name="assertionChanging"/&gt;
  &lt;/jxb:bindings&gt;
  
  &lt;/jxb:bindings&gt; &lt;!-- schemaLocation="090403-0_901-Packet-Schema.xsd" node="/xs:schema" --&gt;
  </code></pre>
  
  <p></p>
  
  <p>The schema is very large but here are the 2 assertion and expression comtype (which is where the errors point to):</p>
  
  <pre><code>&lt;xs:complexType name="loop-step_comtype"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="assignment" type="assignment_comtype" minOccurs="0" maxOccurs="unbounded"/&gt;
  &lt;xs:element name="assertion" type="**assertion_comtype**" minOccurs="0"/&gt;
  &lt;xs:element name="expression" type="expression_comtype"/&gt;
  &lt;xs:element name="assertion" type="**assertion_comtype**" minOccurs="0"/&gt;
  &lt;xs:element name="step-seq" type="step-seq_comtype"/&gt;
  &lt;/xs:sequence&gt;
  &lt;xs:attributeGroup ref="common_attrgroup"/&gt;
  &lt;/xs:complexType&gt;
  
  
  &lt;xs:complexType name="expression_comtype"&gt;
  &lt;xs:choice&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="expression" type="**expression_comtype**"/&gt;
  &lt;xs:group ref="binop_elemgroup"/&gt;
  &lt;xs:element name="expression" type="**expression_comtype**"/&gt;
  &lt;/xs:sequence&gt;
  &lt;xs:sequence&gt;
  &lt;xs:group ref="unop_elemgroup"/&gt;
  &lt;xs:element name="expression" type="**expression_comtype**"/&gt;
  &lt;/xs:sequence&gt;
  &lt;xs:element name="property-libref" type="property-libref_comtype"/&gt;
  &lt;xs:group ref="value_elemgroup"/&gt;
  &lt;/xs:choice&gt;
  &lt;xs:attributeGroup ref="common_attrgroup"/&gt;
  &lt;/xs:complexType&gt; 
  </code></pre>