Issue Type: Bug Bug
Assignee: Unassigned
Created: 12/Sep/12 8:49 AM
Description:

Hi,

I have issue while using flexible="true" with collection.

XML:
<Root>
<User>
<Name>username</Name>
<Email>t...@test.com</Email>
<Address>
<City>city</City>
<State>state</State>
<Country>country</Country>
<Pincode>pincode</Pincode>
</Address>
<Address>
<City>city2</City>
<State>state2</State>
<Country>country2</Country>
<Pincode>pincode2</Pincode>
</Address>
</User>
</Root>

binding.xml:
<binding name="binding" package="com.jibx.entity" trim-whitespace="true">
<mapping class="com.jibx.entity.Root" name="Root" ordered="false" flexible="true">
<structure type="com.jibx.entity.User" field="user"/>
</mapping>
<mapping class="com.jibx.entity.User" name="User" ordered="false" flexible="true">
<value name="Name" field="name"/>
<value name="Email" field="email"/>
<collection item-type="com.jibx.entity.Address" name="address" field="address"/>
</mapping>
<mapping class="com.jibx.entity.Address" name="Address" ordered="false" flexible="true">
<value name="City" field="city"/>
<value name="State" field="state"/>
<value name="Country" field="country"/>
<value name="Pincode" field="pincode"/>
</mapping>
</binding>

The binding file compiles without any error. Also, Unmarhsalling executes without any run-time error.
But it won't set the list of address.

Why it isn't able to map the 'Address' into list of address?

Please help.

Environment: Windows, Java
Project: JiBX
Priority: Major Major
Reporter: Ankur Raiyani
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to