+ Start a Discussion
soasoa 

how to create a data model when given a schema.

Hi,
 
Given a XML schema, is there a way to create Data Model Consisting of Custom Objects?
 
Following is the Schema:
 
<TXLifeRequest>
 <OLifE>
  <Holding>
   <CurrencyTypeCode>840</CurrencyTypeCode>
   <Policy>
    <PolNumber>FLA_1000073998</PolNumber>
    <PolicyStatus>21</PolicyStatus>
    <RequirementInfo>
     <ReqCode>348</ReqCode>
     <ReqOrderMode>1</ReqOrderMode>
     <RequirementInfoSysKey>1000073999</RequirementInfoSysKey>
    </RequirementInfo>
   </Policy>
  </Holding>
  <Oid>1000073992</Oid>
  <Party>
   <Address>
    <AddressStateTC>17</AddressStateTC>
    <Zip>60601</Zip>
   </Address>
   <FullName>Robert Jones</FullName>
   <GovtId>640640604</GovtId>
   <PartySysKey>1000073996</PartySysKey>
   <Person>
    <BirthCountry>1</BirthCountry>
    <BirthJurisdictionTC>17</BirthJurisdictionTC>
    <FirstName>Robert</FirstName>
    <Gender>1</Gender>
    <LastName>Jones</LastName>
   </Person>
  </Party>
  <Party>
  </Party>
 </OLifE>
 <TransRefGUID>1000073991</TransRefGUID>
 <TransType>9002</TransType>
</TXLifeRequest>

 

 

please help..


 


Message Edited by soa on 09-12-2008 01:48 AM
SuperfellSuperfell
That's not a schema, that's a instance document. GIven the actual schema you could choose to model each complexType as a custom object. (so guessing from that sample, you'd have a Policy object, a Holding object, Person, Party, etc.)
soasoa
Hi Simon,
 
Thank You for replying.
I just wanted to ask that can Force.com automatically create data model for the complex objects rather than we creating it?
 
 
regards,
 
Diti