Hi,
  Looks like a bug I came across. 
http://jira.codehaus.org/browse/JIBX-175
  You may find his fixed in version 1.1.6. Now I have not tried the fix myself 
yet, so it will help if you could give your feedback.

Sowjanya

-----Original Message-----
From: Niklas Lönn [mailto:niklas.l...@brandproject.se] 
Sent: Thursday, March 19, 2009 6:58 AM
To: jibx-us...@lists.sourceforge.net.
Subject: [jibx-users] flexible="true" not working?

Hi!

I'm trying to replace my manual load of the model from xml with JiBX, 
but I don't want to do a full implementation, I only need to read a few 
things from the document.

I have tried ordered="false" flexible="true" but it still expects 
closing tags.

Here is my example XML:
<?xml version="1.0" encoding="UTF-8"?>
<document>
    <stories>
        <story id="321">
            <ignoreme/>
        </story>
    </stories>
</document>


Here is my binding:
<binding>
    <mapping  name="document" class="se.brandproject.ids.cache.Document" 
ordered="false" flexible="true">
        <collection name="stories" field="stories" ordered="false" 
flexible="true"></collection>
    </mapping>
    <mapping name="story" class="se.brandproject.ids.cache.Story" 
ordered="false" flexible="true">
        <value style="attribute" name="id" field="id"  />
    </mapping>
</binding>

Here is my exception:
org.jibx.runtime.JiBXException: Expected "story" end tag, found 
"ignoreme" start tag (line 5, col 24)

Am I doing something wrong or is this a bug?

Thanks
Niklas

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users
This email message is intended only for the addressee(s) and contains 
information that may be confidential.  
If you are not the intended recipient please notify the sender by reply email 
and immediately delete this message. 
Use, disclosure or reproduction of this email by anyone other than the intended 
recipient(s) is strictly prohibited.


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to