Ajit More

Ajit More

  • NA
  • 569
  • 333.8k

How to extract and save into database with two records ?

May 19 2016 6:55 AM
this is consider as String
How to add this two benefiary record into data base (means how to extract this two records)
String= "<SessionID>B869E8B570</SessionID>
<BeneficiaryCount>2</BeneficiaryCount>
<ResponseCode>0</ResponseCode>
<ResponseMessage>Query Beneficiary List Successful</ResponseMessage>
<BeneficiaryDetails>
<BeneficiaryDetail>
<Name>Test1 </Name>
<BankName>CBI</BankName>
<BankBranch>ABC</BankBranch>
<BankCity>THANE</BankCity>
<BankIfscode>CBIN00001</BankIfscode>
<BeneficiaryType>IMPS</BeneficiaryType>
<BankAccountNumber>12654854</BankAccountNumber>
<BeneficiaryCode>10000001</BeneficiaryCode>
<Status>ACTIVE</Status>
<OrgTransRefNum>15487598</OrgTransRefNum>
<OrgAckNo>77889955</OrgAckNo>
</BeneficiaryDetail>
<BeneficiaryDetail>
<Name>Test2</Name>
<BankName>SBI</BankName>
<BankBranch>XYZ</BankBranch>
<BankCity>MUMBAI</BankCity>
<BankIfscode>SBIN48758</BankIfscode>
<BeneficiaryType>IMPS</BeneficiaryType>
<BankAccountNumber>875487548754</BankAccountNumber>
<BeneficiaryCode>1854875</BeneficiaryCode>
<Status>ACTIVE</Status>
<OrgTransRefNum>8855441166</OrgTransRefNum>
<OrgAckNo>659845875</OrgAckNo>
</BeneficiaryDetail>
</BeneficiaryDetails>
"

Answers (3)