JIBX binding and Google Contacts with flexible=true

alomeomia

New Member
I have a simple binding:\[code\]<binding> <mapping name="entry" class="google.vo.GoogleContactsEntry" ordered="false"> <value name="title" field="title" usage="optional" /> <value name="email" field="email" usage="optional" /> </mapping> <mapping name="feed" class="google.vo.GoogleContacts" ordered="false" flexible="true"> <namespace uri="http://www.w3.org/2005/Atom" default="elements"/> <value name="id" field="id" usage="optional" /> <value name="updated" field="updatedString" usage="optional" /> <value name="title" field="title" usage="optional" /> <collection item-type="google.vo.GoogleContactsEntry" name="entries" field="entries"/> </mapping></binding>\[/code\]The problem is in Collection element, which needs name="entries". Google returns entries without a wrapping element. Just like this:\[code\]<feed> <entry> </entry> <entry> </entry></feed>\[/code\]And JiBX expects:\[code\]<feed> <entries> <entry> </entry> <entry> </entry> <entries> </feed>\[/code\]Without element name in the binding scheme at collection, JiBX doesn't compile. Is there a solution?
 
Back
Top