Kumar Ravishankar

Kumar Ravishankar

  • NA
  • 437
  • 7.9k

Have To Declare Property in different class

Mar 11 2018 11:57 PM
<TravelDetails xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UserID>100002</UserID>
<ClientDetails>
<ClientType />
<ForeName />
<LastName />
<ClientAddress>
<CommunicationAddress>
<Address1 />
</CommunicationAddress>
<PermanentAddress>
<IsPermanentSameasCommAddr>true</IsPermanentSameasCommAddr>
<Address>
<Address1 />
</Address>
</PermanentAddress>
</ClientAddress>
</ClientDetails>
<InsuredDetail>
<Email>[email protected]</Email>
</InsuredDetail>
<SpouseDetails>
<FirstName />
<DOB />
<PassportNo />
<RelationshipwithInsuredID />
<NomineeName />
<NomineeRelationshipID />
</SpouseDetails>
<ChildDetailList>
<ChildDetails>
<ChildName />
</ChildDetails>
</ChildDetailList>
<UniversityDetails>
<UniversityName />
<UniversityCountryId />
<EmailId />
<Fax />
</UniversityDetails>
<CourseDetails>
<CourseDuration />
<TutionFeePerSem />
<NoOfSems />
</CourseDetails>
<HomeBurglaryAddress>
<IsSameAsCommAddr>false</IsSameAsCommAddr>
<Address>
<Address1 />
<SponsorDetails>
<SponsorName />
<IsSponserAddressSameasCommAddress>false</IsSponserAddressSameasCommAddress>
<SponserAddress>
<MobileNo />
</SponserAddress>
</SponsorDetails>
<DoctorDetails>
<IsDoctorDetails>false</IsDoctorDetails>
<Name />
<Address>
<Address1 />
</Address>
</DoctorDetails>
<Policy>
<BusinessType>1</BusinessType>
<AgentCode>Direct</AgentCode>
</Policy>
<RiskDetails>
<IsIndianCitizen>true</IsIndianCitizen>
<IsOverSeasCitizen>false</IsOverSeasCitizen>
</RiskDetails>
<LstTravelCoverDetails>
<LstTravelCovers>
<CoverageName />
</LstTravelCovers>
</LstTravelCoverDetails>
<ErrorMessages />
<SourceSystemID>100002</SourceSystemID>
</TravelDetails>
 
I have to declare above kind of properties in different class and assign value from form input and create XML like above, so how can I do this 
 
 

Answers (3)