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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to