Hi

Let me go to real example straight. This is XML file i
have..

<Patients>
<Patient>
<state_prov>1953:1972</state_prov>
<patient_key type='pk'>117</patient_key>
<first_name>RUBY</first_name>
<sex>Unknown</sex>
<date_created>1998-07-28.11:47:22.000000</date_created>
<postal_code>92286</postal_code>
<last_name>ADDERSON</last_name>
</Patient> 
</Patients>

I have above XML with me.

And I have class

class Patient 
{
        PatientDO pdo;
        String pk;
}

Class PatientDO
{
        String state_prov;
        String first_name;
        String last_name;
        String postal_code;
        String sex;

}

I need to create objects of class Patient where pk
attribute of class patient maps to patient_key element
text and all remaining attributes of PatientDO class
map one to one to children Patient element in XML (
except patient_key).

I am unable to map it without changing XML structure.

Any suggestions would be greatly appreciated.
thanks
VS

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to