Cannot ignore elements inside structure
---------------------------------------
Key: JIBX-101
URL: http://jira.codehaus.org/browse/JIBX-101
Project: JiBX
Type: Bug
Components: core
Versions: JiBX 1.1, JiBX 1.0.1
Environment: Windows XP Professional SP 2, JDK 5.0, JBuilder 2005, Ant task
Reporter: Zeljko Trogrlic
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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs