Hi All,

I am using the custom binding for marshalling and unmarshalling the input xml 
file. But if the elements are not in the proper order, binding fails even 
though I use the ordered="false" tag for the enclosing structure element.


I have following binding file.

<binding name="binding" package="com.abc.xyz.identity">
    <namespace uri="http://com.abc.xyz/IDENTITY"; default="elements" />
    <mapping abstract="true" type-name="identityROOT" 
class="com.abc.xyz.bom.identity.Identity_ROOT" post-set="postSet" 
pre-set="preSet">
        <namespace uri="" default="elements" prefix="" />
        <collection field="identityTopicList" usage="optional" 
create-type="java.util.ArrayList">
            <structure type="com.abc.xyz.bom.identity.Identity_Topic" 
name="IDENTITY" ordered="false">
                <value style="element" name="sourceProfileId" 
field="sourceProfileId" usage="optional" />
                <value style="element" name="recordId" field="recordId" 
usage="optional" />
                <structure field="name" usage="optional" name="Name" 
ordered="false">
                    <value style="element" name="id" field="id" 
usage="optional" />
                    <structure field="change_event_identifier_list" 
name="Change_Event_Identifier_TARGET"
                        marshaller="com.abc.xyz.bom.RulesMapper" 
usage="optional" unmarshaller="com.abc.xyz.bom.RulesMapper" />
                    <structure field="name_verification_date_list" 
name="Name_Verification_Date_TARGET"
                        marshaller="com.abc.xyz.bom.RulesMapper" 
usage="optional" unmarshaller="com.abc.xyz.bom.RulesMapper" />
                    <structure field="name_prefix_text_list" 
name="Name_Prefix_Text_TARGET"
                        marshaller="com.abc.xyz.bom.RulesMapper" 
usage="optional" unmarshaller="com.abc.xyz.bom.RulesMapper" />
                    <structure field="information_handling_effective_date_list"
                        name="Information_Handling_Effective_Date_TARGET" 
marshaller="com.abc.xyz.bom.RulesMapper"
                        usage="optional" 
unmarshaller="com.abc.xyz.bom.RulesMapper" />
                        ...
                        ...
                        ...
                        ...
                </structure>
            </structure>
        </collection>
        ...
        ...
        ...
        ...
</binding>



Thanks,
Vikas Jadhav
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to