The original schema is very complex (include many other schemas) and I only 
need to process a few elements from it. That is why I tried the structure 
approach. Why was I getting the Duplicate element error in my original 
approach? What does the  "No way to load prior value - new instance will be 
created on each unmarshalling; on structure element at"  warning mean. It was 
pointing to the line caused the duplicate element errorWhen I changed the 
binding like this to use collection, I am getting bind errors[bind] Error: 
Unknown format {http://www.naxml.org/POSBO/Vocabulary/2003-10-16}:Description; 
on value element at (line 18, col 105 [bind] Error: All child components must 
define element names for flexible='true'; on collection element at (line 13, 
col 137<binding name="GetRewardsRequest" direction="input" 
trim-whitespace="true">        <mapping name="GetRewardsRequest" 
class="com.model.RewardTransaction"                   
xmlns:ns2="http://www.pcats.org/schema/naxml/loyalty/v01";                       
xmlns:ns3="http://www.naxml.org/POSBO/Vocabulary/2003-10-16"; >                  
<namespace uri="http://www.pcats.org/schema/naxml/loyalty/v01"; prefix="ns2" />  
        <namespace uri="http://www.naxml.org/POSBO/Vocabulary/2003-10-16"; 
prefix="ns3" />               <structure name="TransactionData" flexible="true" 
ordered="false">                      <structure name="TransactionDetailGroup" 
flexible="true" ordered="false" usage="optional">                              
<collection item-type="com.model.TransactionLine" set-method="setTranItemList" 
create-type="java.util.ArrayList">                               <structure 
name="TransactionLine">                                      <value 
name="LineNumber" set-method="setLineNumber" usage="optional" />                
                 <value name="status" set-method="setStatus" usage="optional" 
style="attribute" />                                       <structure 
name="ItemLine" flexible="true" ordered="false" usage="optional">               
                             <value name="Description" 
set-method="setDescription" usage="optional" format="ns3:Description" />        
                                      <value name="SalesUOM" 
set-method="setSalesUOM" usage="optional" />                                    
         <value name="discountable" set-method="setDiscountable" 
usage="optional" style="attribute" />                                   
</structure>  <!-- End::ItemLine -->                            </structure> 
<!-- End::TransactionLine -->                        </collection>              
   </structure> <!-- End::TransactionDetailGroup -->               </structure> 
<!-- End::TransactionData -->      </mapping></binding>                         
             
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to