xmlbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rama Mohan Rao Peruri" <ram...@dbs.com>
Subject RE: Name Value pair to Java Object
Date Fri, 01 Sep 2006 09:29:23 GMT
Hi,

 

Forgot the question :-) :-) The question, is can I do this with
XmlBeans?  Is there a sample available?

 

 

________________________________

From: Rama Mohan Rao Peruri [mailto:ramamr@dbs.com] 
Sent: Friday, September 01, 2006 5:27 PM
To: user@xmlbeans.apache.org
Subject: Name Value pair to Java Object

 

Hi,

 

I have an XML document that looks like this:

 

<document >

    <attribute  type="country">Singapore</attribute>

    <attribute  type="continent">Asia</attribute>

</document>

 

I would like to unmarshall this into a Java object that is as follows

 

public class LocationDocument {

    /* accessors omitted */

   public country;  

   public continent;

}

 

Best Regards

Rao (Peruri Rama Mohan Rao)

T&O-ES-Imaging & Workflow

Tel: 65- 6878 2071

Mobile: 65-9389 7141

 

CONFIDENTIAL NOTE: The information contained in this email is intended
only for the use of the individual or entity named above and may contain
information that is privileged, confidential and exempt from disclosure
under applicable law. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this communication is strictly prohibited. If you have
received this message in error, please immediately notify the sender and
delete the mail. Thank you.



CONFIDENTIAL NOTE: The information contained in this email is intended only for the use of
the individual or entity named above and may contain information that is privileged, confidential
and exempt from disclosure under applicable law. If the reader of this message is not the
intended recipient, you are hereby notified that any dissemination, distribution or copying
of this communication is strictly prohibited. If you have received this message in error,
please immediately notify the sender and delete the mail.
Thank you.

Mime
View raw message