Hi,
I'm curious if JiBX could handle the following scenario, with or without
custom un/marshallers.
XML:
<p>
Some text
<br/>
Some more text
<br/>
Yet more text in any arbitrary order
<p>
Java:
abstract class Content {}
abstract class ContentContainer extends Content {
List<Content> content;
}
class Paragraph /* <p> */ extends ContentContainer {}
class Break /* <br> */ extends Content {}
class Text /* plain text */ extends Content {
String text;
}
So, specifically, I need to be able to handle a mix of child elements and
character data defined in an arbitrary order. If custom un/marshallers are
required, what might they look like? If this doesn't seem attainable, is
there perhaps a better object model that could represent this structure?
Thanks,
Troy
Troy Kinsella
Software Developer
Wmode Inc.
[EMAIL PROTECTED]
m: 403.869.7882
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users