Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: JiBX 1.0.1, JiBX 1.1
-
Fix Version/s: None
-
Component/s: core
-
Labels:None
-
Environment:Windows XP Professional SP 2, JDK 5.0, JBuilder 2005, Ant task
-
Number of attachments :
Description
I need to ignore elements inside XML, which I do not want to map. According to manual, this is done using <structure> element without field. This works unless structure is inside structure (see comments):
<binding name="BAST" direction="input">
<mapping name="METADATA" class="hr.siemens.m2y.streaming.model.PlayList" value-style="element">
<!-- works -->
<structure name="version"/>
<collection field="media" factory="hr.siemens.m2y.streaming.model.PlayList.mediaListFactory">
<structure name="product" type="hr.siemens.m2y.streaming.model.Media">
<value name="ean_code" field="eanCode"/>
<!-- FAILS -->
<structure name="bast_product_id" usage="optional"/>
Binding compiler reports:
[bind] Error: No compatible mapping defined for type hr.siemens.m2y.streaming.model.Media; on structure element at (line 14, col 59, in bastBinding.xml)
I've been unable to duplicate this problem. Can you supply sample code and binding to demonstrate?