users@jaxb.java.net

simple Xml->Java example

From: Senthil Rajasekharan <senthil_rajasek_at_yahoo.com>
Date: Tue, 8 May 2007 11:17:30 -0700 (PDT)

I am trying to create a Java class that should
generate the following Xml on "marshalling".

<ElementA>

<ElementB>stringValue</ElementB>
<ElementC name="stringName">stringValue</ElementC>
<ElementD>integerValue</ElementD>

</ElementA>

What is the corresponding Java representation with
annotations?

I have tried this a few times on my own...but I don't
understand how to generate ElementC.

-Senthil

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com