[ http://jira.codehaus.org/browse/JIBX-101?page=all ] Dennis Sosnoski closed JIBX-101: --------------------------------
> 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 > Assignee: Dennis Sosnoski > > > 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 ------------------------------------------------------- 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-devs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-devs
