Hello,

I am evaluating JIBX for use on our project.

Let me first say I've inherited a rather messy object/XML heirachy.  However,
JIBX seems suited to help us despite this.

Let's say I have this Shopper class:

public class Shopper {
    public String firstName;
    public String workPhone;
    public String dayPhone;
  }

And this XML Structure:

<shopper>
<first-name>Grover</first-name>
<phone type="work">8675309</phone>
<phone type="day">5551212</phone>
</shopper>

I found it easy to map properties like "first name".  What I'm having difficulty
with is the workPhone/dayPhone mapping.  I'm not clear on how I can switch what
field is being set by the value in the XML's "type" attribute.

If someone might show me the way, I would be very much appreciative.

I have found JIXB to be great so far, and would look forward to using it within
our application.

Thank you in advance for your time.

Best Regards,

Keith Collison


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to