title: JAXB bindings for nested element with same name
body: <p>I have a schema that is given to me (so I am not in position to make changes to it), and I am trying to generate the JAXB objects for it, and I get a naming conflict because of nested elements with same name.
   I created bindings.xml to avoid the naming conflict, and it is working fine when I have a two level nesting (e.g. the XPath is something like this:</p>
  
  <pre><code>/A/Value/B/Value
  </code></pre>
  
  <p>So something like this solves the problem:</p>
  
  <pre><code>&lt;jaxb:bindings
       node="/xsd:schema/xsd:complexType[@name='A']
          /xsd:complexType/xsd:sequence/xsd:element[@name='Value']
          /xsd:complexType/xsd:sequence/xsd:element[@name='B']
          /xsd:complexType/xsd:sequence/xsd:element[@name='Value']"&gt;
          &lt;jaxb:class name="InnerValue" /&gt;
     &lt;/jaxb:bindings&gt; 
  </code></pre>
  
  <p>But now I have a three level nesting like this:</p>
  
  <pre><code>/A/Value/B/Value/C/Value 
  </code></pre>
  
  <p>and I don't know how to define the bindings (whether I need two of them ) to avoid compilation errors. </p>
  
  <p>Any help much appreciated</p>