JiBX
  1. JiBX
  2. JIBX-101

Cannot ignore elements inside structure

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major 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 :
      0

      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)

        Activity

        Hide
        Dennis Sosnoski added a comment -

        I've been unable to duplicate this problem. Can you supply sample code and binding to demonstrate?

        Show
        Dennis Sosnoski added a comment - I've been unable to duplicate this problem. Can you supply sample code and binding to demonstrate?

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Zeljko Trogrlic
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: