Hello everybody,

i've got a problem with mapping to different collections within one tag.

XML-File

...
        <DIAG-COMMS>
                <DIAG-SERVICE>
                        ...
                </DIAG-SERVICE>
                <SINGLE-ECU-JOB>
                        ...
                </SINGLE-ECU-JOB>
                <DIAG-SERVICE>
                        ...
                </DIAG-SERVICE>
                <DIAG-SERVICE>
                        ...
                </DIAG-SERVICE>
                <SINGLE-ECU-JOB>
                        ...
                </SINGLE-ECU-JOB>
                <SINGLE-ECU-JOB>
                        ...
                </SINGLE-ECU-JOB>
                <SINGLE-ECU-JOB>
                        ...
                </SINGLE-ECU-JOB>
        <DIAG-COMMS>
...

My mapping looks like this:

...
        <structure field="diagComms" flexible="true" ordered="false"/>
...

        <mapping name="DIAG-COMMS"
class="data.odx.v210.diagLayerContainer.common.DiagComms">
        
        <!-- hier ist ein ungelöstes Problem
                jibx will immer nur die erste Collection einlesen!
        -->
        
                <collection field="singleEcuJob" flexible="true" 
ordered="false">
                        <structure name="SINGLE-ECU-JOB"
type="data.odx.v210.diagLayerContainer.common.diagComms.SingleEcuJob"
flexible="true" ordered="false">
                                ...
                        </structure>
                </collection>   
                <collection field="diagService" flexible="true" ordered="false">
                        <structure name="DIAG-SERVICE"
type="data.odx.v210.diagLayerContainer.common.diagComms.DiagService"
flexible="true" ordered="false">
                                <value name="ID" field="id" style="attribute"/>
                                <value name="SEMANTIC" field="semantic" 
style="attribute"
usage="optional"/>
                                <value name="ADDRESSING" field="addressing" 
style="attribute"
usage="optional"/>
                                <value name="SHORT-NAME" field="shortName"/>
                                <value name="LONG-NAME" field="longName"/>
                                ...
                        </structure>
                </collection>
        </mapping>

The Problem is, that jibx only reads the collection that is first
mentioned in the mapping-file. (The DIAG-COMMs are within a additional
mapping section for overview reasons, but i don't think that is the problem)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to