[ 
http://jira.codehaus.org/browse/JIBX-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Sosnoski reassigned JIBX-245:
------------------------------------

    Assignee: Dennis Sosnoski

> Problems using flexible=true when only attributes are defined
> -------------------------------------------------------------
>
>                 Key: JIBX-245
>                 URL: http://jira.codehaus.org/browse/JIBX-245
>             Project: JiBX
>          Issue Type: Bug
>          Components: core
>    Affects Versions: JiBX 1.1.6
>            Reporter: Morten Sommer
>            Assignee: Dennis Sosnoski
>            Priority: Minor
>
> I have problems using the flexible=true option to skip unknown elements on a 
> simple mapping with only attributes defined.
> xml:
> <test attr1="a" attr2="b">
>    <skipthis>
>       <item value="1"/>
>    </skipthis>
> </test>
> JiBX definition:
> <binding>
>       <mapping name="test" class="xxx" ordered="false" flexible="true">
>               <value name="attr1" field="attr1" style="attribute" />
>               <value name="attr2" field="attr2" style="attribute" 
> usage="optional"/>
>        </mapping>
> </binding>
> This gives an exception like: Expected "test" end tag, found "skipthis" start 
> tag (line 2, col 3)
> If I add an optional dummy structure in the definition it works:
>  <binding>
>       <mapping name="test" class="xxx" ordered="false" flexible="true">
>               <value name="attr1" field="attr1" style="attribute" />
>               <value name="attr2" field="attr2" style="attribute" 
> usage="optional"/>
>                <structure name="flexiblefix" usage="optional"/>
>         </mapping>
> </binding>

-- 
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

        

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to