If I have the following XML:

<foo>
I am happy
<bar baz="good"/>
I am not happy
</foo>

My classes look like this:
class Foo {
   Bar bar;
   ArrayList<String> contents;
}
class Bar {
   String baz;
}

How do I restore the text contents of the foo tag into the collection?
 What if I have some other class that extends Foo, such that the xml
is:
<foo2>
I am happy
<bar baz="good"/>
I am not happy
<other o="no good"/>
I was once lost in the woods
</foo2>

Is there still a way to handle this such that the structure map-as i
would normally use to restore the elements of Foo will also get the
last text string?  Is this even remotely possible?

Thanks in advance,
Kendall

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to