title: JiBX Code-Gen Error: Duplicate name on format element at
body: <p>I am trying to generate code (with customizations applied) for OTA schema available at [OTA2003B] ( <a href="http://www.opentravel.org/Specifications/SchemaIndex.aspx?FolderName=2003B" rel="nofollow">http://www.opentravel.org/Specifications/SchemaIndex.aspx?FolderName=2003B</a> ) using JiBX Code Gen tool.Following is the code I have written to achieve the same.</p>
  
  <p><strong>Maven pom.xml jibx-maven-plugin configuration</strong>  </p>
  
  <pre><code>        &lt;!-- JiBX Maven Plugin --&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.jibx&lt;/groupId&gt;
              &lt;artifactId&gt;jibx-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.2.3&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;customizations&gt;
                     &lt;customizations&gt;src/test/resources/custom1.xml&lt;/customizations&gt;
                  &lt;/customizations&gt;
                  &lt;schemaLocation&gt;src/main/conf&lt;/schemaLocation&gt;
                  &lt;includeSchemas&gt;
                      &lt;includeSchema&gt;FS_OTA_VehAvailRateRQ.xsd&lt;/includeSchema&gt;
                      &lt;includeSchema&gt;FS_OTA_VehAvailRateRS.xsd&lt;/includeSchema&gt;
                  &lt;/includeSchemas&gt;
                  &lt;schemaBindingDirectory&gt;src/main/java&lt;/schemaBindingDirectory&gt;
                  &lt;includeSchemaBindings&gt;
                     &lt;includeSchemaBindings&gt;*binding.xml&lt;/includeSchemaBindings&gt;
                  &lt;/includeSchemaBindings&gt;
  
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;generate-java-code-from-schema&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;schema-codegen&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
  
                  &lt;execution&gt;
                      &lt;id&gt;compile-the-binding-&lt;/id&gt;
                          &lt;goals&gt;
                                &lt;goal&gt;bind&lt;/goal&gt;
                          &lt;/goals&gt;
                 &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p><strong>Customization XML: custom1.xml</strong>  </p>
  
  <pre><code>&lt;schema-set xmlns:xs="http://www.w3.org/2001/XMLSchema"
          prefer-inline="true" 
          type-substitutions="xs:integer xs:int xs:decimal xs:float"
          binding-per-schema="true"&gt;
      &lt;schema name="FS_OTA_VehAvailRateRQ.xsd" 
              includes="OTA_VehAvailRateRQ"
              binding-file-name="otaVehAvailRateRQ_binding.xml"
              package="com.poc.jibx.vehAvailRateRQ"/&gt;
      &lt;schema name="FS_OTA_VehAvailRateRS.xsd" 
              includes="OTA_VehAvailRateRS"
              binding-file-name="otaVehAvailRateRS_binding.xml"
              package="com.poc.jibx.vehAvailRateRS"/&gt;
  &lt;/schema-set&gt;
  </code></pre>
  
  <p>When I try to generate code from the configured schemas the code gets generated without the binding files and I get the following error:</p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building jibx-sample 0.0.1-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  [INFO] --- jibx-maven-plugin:1.2.3:schema-codegen (default-cli) @ jibx-sample ---
  [INFO] Generating Java sources in src/main/java from schemas available in src/main/conf...
  Loaded and validated 2 specified schema(s)
  Error: Duplicate name {http://www.opentravel.org/OTA/2003/05}:InventoryStatusType; on format element at (source unknown)
  Error: Duplicate name {http://www.opentravel.org/OTA/2003/05}:RatePeriodSimpleType; on format element at (source unknown)
  Error: Duplicate name {http://www.opentravel.org/OTA/2003/05}:OffLocationServiceID_Type; on format element at (source unknown)
  Error: Duplicate name {http://www.opentravel.org/OTA/2003/05}:VehicleTransmissionType; on format element at (source unknown)
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 2.527s
  [INFO] Finished at: Mon Sep 26 13:38:06 IST 2011
  [INFO] Final Memory: 12M/84M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.jibx:jibx-maven-plugin:1.2.3:schema-codegen (default-cli) on project jibx-sample: Terminating d
  ue to errors in bindings -&gt; [Help 1]
  [ERROR] 
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR] 
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  </code></pre>
  
  <p>However when I append <strong>generate-all="false"</strong> to &lt;shema-set&gt; element in <strong>custom1.xml</strong> the code generation and binding generation gets done
  successfully.Please see the output below when I am using <strong>generate-all="false"</strong></p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building jibx-sample 0.0.1-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  [INFO] --- jibx-maven-plugin:1.2.3:schema-codegen (default-cli) @ jibx-sample ---
  [INFO] Generating Java sources in src/main/java from schemas available in src/main/conf...
  Loaded and validated 2 specified schema(s)
  Generated 11 top-level classes (plus 40 inner classes) in package com.poc.jibx.vehAvailRateRQ
  Generated 24 top-level classes (plus 69 inner classes) in package com.poc.jibx.vehAvailRateRS
  Total top-level classes in model: 35
  Total classes (including inner classes) in model: 144
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 2.574s
  [INFO] Finished at: Mon Sep 26 14:08:11 IST 2011
  [INFO] Final Memory: 12M/84M
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p>I can see that the in both the schemas specified the elements referred to in the error shown above, for e.g. <em>InventoryStatusType</em> are available.And due to this the problem is occurring.But I have specified <strong>prefer-inline="true"</strong> and different packages for each schema code to be generated in my <em>custom1.xml</em>, which means that for both the schemas the fully qualified name of <em>InventoryStatusType</em>(assuming this would be created as an inner class) would be different and this should not create a duplication error like the one I am encountering.<br>
  1) <strong>What is that is causing the problem and how <em>generate-all="false"</em> is able to avoid this issue?<br>
  2) How to resolve the Duplicate Name error without using <em>generate-all="false"</em>?</strong>  </p>
  
  <p>Note: When using generate-all="false" binding files gets generated but on compilation of bindings I face the following error:</p>
  
  <pre><code>Error: Duplicate name {http://www.opentravel.org/OTA/2003/05}:AddressType; on mapping element at (line 251, col 104, in otaVehAvai
  lRateRS_binding.xml)
  Error: Duplicate name {http://www.opentravel.org/OTA/2003/05}:CompanyNameType; on mapping element at (line 275, col 112, in otaVeh
  AvailRateRS_binding.xml)
  Error: Duplicate name {http://www.opentravel.org/OTA/2003/05}:LocationType; on mapping element at (line 324, col 106, in otaVehAva
  ilRateRS_binding.xml)
  Error: Duplicate name {http://www.opentravel.org/OTA/2003/05}:PersonNameType; on mapping element at (line 362, col 110, in otaVehA
  vailRateRS_binding.xml)
  Error: Duplicate name {http://www.opentravel.org/OTA/2003/05}:TPA_Extensions_Type; on mapping element at (line 383, col 118, in ot
  aVehAvailRateRS_binding.xml)
  Error: Duplicate mapping name not allowed for unmarshalling; on mapping element at (line 386, col 88, in otaVehAvailRateRS_binding
  .xml)
  Error: Duplicate name {http://www.opentravel.org/OTA/2003/05}:TelephoneType; on mapping element at (line 394, col 108, in otaVehAv
  ailRateRS_binding.xml)
  Error: Duplicate name {http://www.opentravel.org/OTA/2003/05}:EffectiveExpireOptionalDateGroup-AttributeGroup; on mapping element 
  at (line 418, col 161, in otaVehAvailRateRS_binding.xml)
  Error: Duplicate name {http://www.opentravel.org/OTA/2003/05}:PrivacyGroup-AttributeGroup; on mapping element at (line 430, col 12
  1, in otaVehAvailRateRS_binding.xml)
  Error: Duplicate name {http://www.opentravel.org/OTA/2003/05}:VehicleCustomerType; on mapping element at (line 470, col 120, in ot
  aVehAvailRateRS_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.CompanyNameType is incompatible with binding for class com.poc.jibx.vehAvailRateRS.
  CompanyNameType; on structure element at (line 13, col 166, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.CompanyNameType is incompatible with binding for class com.poc.jibx.vehAvailRateRS.
  CompanyNameType; on structure element at (line 28, col 144, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.LocationType is incompatible with binding for class com.poc.jibx.vehAvailRateRS.Loc
  ationType; on structure element at (line 43, col 159, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.LocationType is incompatible with binding for class com.poc.jibx.vehAvailRateRS.Loc
  ationType; on structure element at (line 44, col 159, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.CompanyNameType is incompatible with binding for class com.poc.jibx.vehAvailRateRS.
  CompanyNameType; on structure element at (line 51, col 118, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.TPAExtensionsType is incompatible with binding for class com.poc.jibx.vehAvailRateR
  S.TPAExtensionsType; on structure element at (line 227, col 50, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.VehicleCustomerType is incompatible with binding for class com.poc.jibx.vehAvailRat
  eRS.VehicleCustomerType; on structure element at (line 106, col 117, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.AddressType is incompatible with binding for class com.poc.jibx.vehAvailRateRS.Addr
  essType; on structure element at (line 128, col 111, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.PersonNameType is incompatible with binding for class com.poc.jibx.vehAvailRateRS.P
  ersonNameType; on structure element at (line 130, col 140, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.TelephoneType is incompatible with binding for class com.poc.jibx.vehAvailRateRS.Te
  lephoneType; on structure element at (line 131, col 136, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.LocationType is incompatible with binding for class com.poc.jibx.vehAvailRateRS.Loc
  ationType; on structure element at (line 136, col 151, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.CompanyNameType is incompatible with binding for class com.poc.jibx.vehAvailRateRS.
  CompanyNameType; on structure element at (line 137, col 157, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.CompanyNameType is incompatible with binding for class com.poc.jibx.vehAvailRateRS.
  CompanyNameType; on structure element at (line 138, col 157, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.CompanyNameType is incompatible with binding for class com.poc.jibx.vehAvailRateRS.
  CompanyNameType; on structure element at (line 144, col 145, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.PrivacyGroup is incompatible with binding for class com.poc.jibx.vehAvailRateRS.Pri
  vacyGroup; on structure element at (line 187, col 133, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.PrivacyGroup is incompatible with binding for class com.poc.jibx.vehAvailRateRS.Pri
  vacyGroup; on structure element at (line 220, col 133, in otaVehAvailRateRQ_binding.xml)
  Error: References to structure object must have compatible types: com.poc.jibx.vehAvailRateRQ.TPAExtensionsType cannot be used as 
  com.poc.jibx.vehAvailRateRS.TPAExtensionsType; on structure element at (line 227, col 50, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.PrivacyGroup is incompatible with binding for class com.poc.jibx.vehAvailRateRS.Pri
  vacyGroup; on structure element at (line 230, col 133, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.PersonNameType is incompatible with binding for class com.poc.jibx.vehAvailRateRS.P
  ersonNameType; on structure element at (line 253, col 134, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.TelephoneType is incompatible with binding for class com.poc.jibx.vehAvailRateRS.Te
  lephoneType; on structure element at (line 256, col 125, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.PrivacyGroup is incompatible with binding for class com.poc.jibx.vehAvailRateRS.Pri
  vacyGroup; on structure element at (line 264, col 137, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.AddressType is incompatible with binding for class com.poc.jibx.vehAvailRateRS.Addr
  essType; on structure element at (line 271, col 119, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.PrivacyGroup is incompatible with binding for class com.poc.jibx.vehAvailRateRS.Pri
  vacyGroup; on structure element at (line 288, col 137, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.EffectiveExpireOptionalDateGroup is incompatible with binding for class com.poc.jib
  x.vehAvailRateRS.EffectiveExpireOptionalDateGroup; on structure element at (line 295, col 197, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.PrivacyGroup is incompatible with binding for class com.poc.jibx.vehAvailRateRS.Pri
  vacyGroup; on structure element at (line 300, col 137, in otaVehAvailRateRQ_binding.xml)
  Error: Object type com.poc.jibx.vehAvailRateRQ.EffectiveExpireOptionalDateGroup is incompatible with binding for class com.poc.jib
  x.vehAvailRateRS.EffectiveExpireOptionalDateGroup; on structure element at (line 307, col 197, in otaVehAvailRateRQ_binding.xml)
  </code></pre>
  
  <h2>Updates on this after receving Don's reply</h2>
  
  <p>After posting the issue I viewed the OTA schemas online ( <a href="http://www.opentravel.org/Specifications/SchemaIndex.aspx?FolderName=2003B" rel="nofollow">http://www.opentravel.org/Specifications/SchemaIndex.aspx?FolderName=2003B</a> ) I was trying to generate code from and I found that the one available at the above link and the one I had was different.So I thought the flattened version of schema
  I had might be causing the issue.So I downloaded the online version of schemas which is properly structured in the sense that it includes the 
  common schemas i.e.</p>
  
  <pre><code>&lt;xs:include schemaLocation="OTA_VehicleCommonTypes.xsd"/&gt;
  &lt;xs:include schemaLocation="OTA_SimpleTypes.xsd"/&gt;
  &lt;xs:include schemaLocation="OTA_CommonTypes.xsd"/&gt;
  &lt;xs:include schemaLocation="OTA_CommonPrefs.xsd"/&gt;
  &lt;xs:include schemaLocation="OTA_AirCommonTypes.xsd"/&gt;
  </code></pre>
  
  <p>Note: I am not using the OTA_AirCommonTypes.xsd in my code as some errors were occuring related to schema elements in this schema definition.</p>
  
  <p>So I thought now the modular generation technique mentioned about (http://jibx.sourceforge.net/fromschema/example-modular.html ) can help.
  I proceeded with the same and following is the code I have written:</p>
  
  <p><strong>jibx-maven-plugin configuration</strong>  </p>
  
  <pre><code>     &lt;!-- For applying custom_a.xml customization --&gt;
       &lt;!-- 
      &lt;configuration&gt;
           &lt;customizations&gt;
              &lt;customization&gt;src/test/resources/custom_a.xml&lt;/customization&gt;
           &lt;/customizations&gt;   
  
           &lt;schemaLocation&gt;src/main/conf/OTA_Schemas&lt;/schemaLocation&gt;
  
           &lt;includeSchemas&gt;
                  &lt;includeSchema&gt;Common/*.xsd&lt;/includeSchema&gt;
                   &lt;/includeSchemas&gt;
  
               &lt;schemaBindingDirectory&gt;src/main/java&lt;/schemaBindingDirectory&gt;
  
                &lt;includeSchemaBindings&gt;
                   &lt;includeSchemaBindings&gt;*binding.xml&lt;/includeSchemaBindings&gt;
                &lt;/includeSchemaBindings&gt;
  
                &lt;options&gt;
                  &lt;u&gt;http://www.opentravel.org/OTA/2003/05&lt;/u&gt;
              &lt;/options&gt;
      &lt;/configuration&gt;
      --&gt;
  
      &lt;!-- For applying custom_b.xml customization --&gt;
  
              &lt;configuration&gt;
                   &lt;customizations&gt;
                      &lt;customization&gt;src/test/resources/custom_b.xml&lt;/customization&gt;
                   &lt;/customizations&gt;   
  
                   &lt;schemaLocation&gt;src/main/conf/OTA_Schemas&lt;/schemaLocation&gt;
  
                   &lt;includeSchemas&gt;
                      &lt;includeSchema&gt;vehAvailRate/*.xsd&lt;/includeSchema&gt;
                   &lt;/includeSchemas&gt;
  
                   &lt;schemaBindingDirectory&gt;src/main/java&lt;/schemaBindingDirectory&gt;
  
                    &lt;includeSchemaBindings&gt;
                       &lt;includeSchemaBindings&gt;*binding.xml&lt;/includeSchemaBindings&gt;
                    &lt;/includeSchemaBindings&gt;
  
                    &lt;options&gt;
                          &lt;i&gt;src/main/java/base-binding.xml&lt;/i&gt;
                    &lt;/options&gt;
              &lt;/configuration&gt;
  </code></pre>
  
  <h1>My Customization XMLs</h1>
  
  <p><strong>custom_a.xml</strong>  </p>
  
  <pre><code>&lt;schema-set prefer-inline="true" package="com.poc.jibx.ota.common"
          xmlns:xs="http://www.w3.org/2001/XMLSchema"
          type-substitutions="xs:integer xs:int xs:decimal xs:float"
          binding-file-name="base-binding.xml"&gt;
  
    &lt;schema name="OTA_CommonPrefs.xsd" /&gt;
    &lt;schema name="OTA_CommonTypes.xsd" /&gt;
    &lt;schema name="OTA_SimpleTypes.xsd" /&gt;
    &lt;schema name="OTA_VehicleCommonTypes.xsd"&gt;
       &lt;complexType name="VehicleProfileRentalPrefType"&gt;
      &lt;element path="**" name="VendorPref" ignore="true"/&gt;
      &lt;/complexType&gt;
    &lt;/schema&gt;
  
  &lt;/schema-set&gt;
  </code></pre>
  
  <p><strong>custom_b.xml</strong> </p>
  
  <pre><code>&lt;schema-set prefer-inline="true" 
          xmlns:xs="http://www.w3.org/2001/XMLSchema"
          type-substitutions="xs:integer xs:int xs:decimal xs:float" &gt;
  
     &lt;name-converter strip-prefixes="OTA_"
        strip-suffixes="Type AttributeGroup Group Attributes"/&gt;
  
      &lt;schema name="OTA_VehAvailRateRQ.xsd" 
          includes="OTA_VehAvailRateRQ" binding-file-name="otaVehAvailRateRQ_binding.xml"
          package="com.poc.jibx.ota.vehAvailRateRQ" /&gt;
  
      &lt;schema name="OTA_VehAvailRateRS.xsd" 
          includes="OTA_VehAvailRateRS" binding-file-name="otaVehAvailRateRS_binding.xml"
          package="com.poc.jibx.ota.vehAvailRateRS" /&gt;             
  &lt;/schema-set&gt;
  </code></pre>
  
  <p>First I applied <strong>custom_a.xml</strong> which generated the code and ran the jibx:bind goal which compiled the bindings(base-binding.xml) successfully.
  Then I commented the configuration section for applying custom_a.xml and enabled the configuration section for applying <strong>custom_b.xml</strong> 
  which generated the code successfully but running the binding compiler produced following errors:</p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building jibx-sample 0.0.1-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  [INFO] --- jibx-maven-plugin:1.2.3:bind (default-cli) @ jibx-sample ---
  [INFO] Running JiBX binding compiler (single-module mode) on 4 binding file(s)
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 1.693s
  [INFO] Finished at: Mon Sep 26 20:57:56 IST 2011
  [INFO] Final Memory: 12M/69M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.jibx:jibx-maven-plugin:1.2.3:bind (default-cli) on project jibx-sample: Internal error - cannot
   modify class com.poc.jibx.ota.common.ActionType loaded from /media/data/Practice/SpringRoo/jibx-sample/target/classes -&gt; [Help 1]
  [ERROR] 
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR] 
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  </code></pre>
  
  <p><strong>So now what is it that I am missing or going wrong at and how to fix this? 
  Also is the code I have written in line with the best practice JiBX users should follow or there are improvements I can make?</strong></p>
  
  <p>Note:  </p>
  
  <p>Generated Code Packages and Hierarchy</p>
  
  <pre>
  src/main/java
      com.poc.jibx.ota.common (Java Package)
      com.poc.jibx.ota.vehAvailRateRQ (Java Package)
      com.poc.jibx.ota.vehAvailRateRS (Java Package)
      base-binding.xml 
      binding.xml
      otaVehAvailRateRQ_binding.xml
      otaVehAvailRateRS_binding.xml
  </pre>
  
  <p><strong>binding.xml</strong> contents:</p>
  
  <pre><code>&lt;binding name="binding" package="com.poc.jibx.ota" trim-whitespace="true"&gt;
    &lt;include path="/myproject/jibx-sample/src/main/java/base-binding.xml" precompiled="true"/&gt;
    &lt;include path="otaVehAvailRateRS_binding.xml"/&gt;
    &lt;include path="otaVehAvailRateRQ_binding.xml"/&gt;
  &lt;/binding&gt;
  </code></pre>
  
  <p>Thanks,<br>
  Jignesh</p>