Hi,
JiBX does not seem to permit flexible attribute on structures that contain
unnamed collection elements. I have huge list of JiBX mappings that use such
unnamed collection elements with embedded structure elements (please see sample
binding definition below). Is there are a way I can work around this without
needing to touch collection element line?
If the above is not possible, what would be the quickest change so that
flexible attribute can be used in the binding definition?
Thanks,
Ernest.
Binding Definition:
-------------------------------
<binding>
<mapping class="timetable" name="timetable">
<structure name="table" usage="optional" ordered="false" flexible="true">
<value field="date" name="date" usage="optional"/>
<value field="time" name="time" usage="optional"/>
<collection field="carrierList" usage="optional">
<structure name="carrier" type="timetabletablecarrier"
usage="optional">
<value field="code" name="code" style="attribute" usage="optional"/>
</structure>
</collection>
</structure>
</mapping>
</binding>
Error issued by JiBX binding compiler when “flexible” attribute was introduced:
-----------------------------------------------------------------------------------------------------------------
Error: All child components must define element names for flexible='true'; on
collection element at (line 6, col 54, in jibxflextest/binding.xml)
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users