[ 
http://jira.codehaus.org/browse/JIBX-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_107275
 ] 

Guido Wischrop commented on JIBX-175:
-------------------------------------

I have a similar problem here.

xml:

          <coord:data>
            <coord:customXML>
              <coord:p-config>
                <coord:reportdefinitions>
                  <coord:repdef name="test 2"/>
                </coord:reportdefinitions>
              </coord:p-config>
            </coord:customXML>
          </coord:data>

binding:

    <mapping class="CustomXML" abstract="true" type-name="customXMLUpdateOut" 
ordered="false" flexible="true">
        <structure name="informationlist" usage="optional">
            <collection field="informationlist" item-type="Information" 
create-type="java.util.ArrayList" usage="optional">
                <structure map-as="informationUpdateOut" />
            </collection>
            <collection name="blocklist" field="blocklist" item-type="Block" 
create-type="java.util.ArrayList" usage="optional">
                <structure map-as="blockUpdateOut" />
            </collection>
        </structure>
    </mapping>

The coord:p-config part should be ignored, but isn't.


> JIBX -- Problem Unmarshalling flexible elements
> -----------------------------------------------
>
>                 Key: JIBX-175
>                 URL: http://jira.codehaus.org/browse/JIBX-175
>             Project: JiBX
>          Issue Type: Bug
>          Components: core
>    Affects Versions: JiBX 1.1.5
>         Environment: Windows XP Professional
>            Reporter: Sowjanya Janga
>         Attachments: JIBXFlexibleIssue.zip
>
>
> Hi, 
>       I have a binding that is meant to unmarshal a flexible structure. 
>       I'am getting an error while unmarshalling extra elements that I think 
> should actually be ignored as the parent structure has flexible="true".
>       Weird things is that the error comes up only if the extra element is 
> the first element, if the element ocurs anywhere after after a defined 
> element, it goes through fine.
>       I am using JIBX version 1.15. 
>       I'am attaching a complete Test Class, sample data and ANT build file. 
>       I would really appreciate if someone has a solution or a work around 
> for this.
> Thanks
> Sowjanya
>       

-- 
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to