I have problem, how to..

i have XML file below
- <Patients>
- <Patient pk="1234">
  <last_name>adha</last_name> 
  <first_name>erpal</first_name> 
  <state id="1818:1011">NY</state> 
  <country id="8181:9191">USA</country> 
  <race>East Indian</race> 
  <address1>12 ekta avenue</address1> 
  <address2>circular road</address2> 
  <refering_physician_key>1912:8181</refering_physician_key> 
  </Patient>
- <Patient pk="4334">
  <last_name>Cdhaf</last_name> 
  <first_name>rpadfl</first_name> 
  <state id="1818:1012">NY</state> 
  <country id="8181:9121">USA</country> 
  <race>Indian</race> 
  <address1>12 ekta avenue</address1> 
  <address2>circular road</address2> 
  <refering_physician_key>1912:8181</refering_physician_key> 
  </Patient>

  </Patients>

i have patient class
public class PatientDO
{
   private String address1;
   private String city;
   private String zip;
   private String homePhone;
   private ListDO sex;    // ?

   private ListDO state;      
   private ListDO country;    
   private ListDO salutation; 
   private ListDO race;       
   private String first_name;
   private String last_name;
}

public class ListDO implements java.io.Serializable
{
   public String objid;
   public String name;
}

I am unable to map ListDO to state, country ..
I am unable to map patient because i have patient class only and patients is
just XML strcuture to encapsulate all patients.
else XML doc is not valid as only on element can be root
any suggestions greatly appreciated
thanks

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

Reply via email to