Click here to Skip to main content
15,888,401 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I need a help here....

need to import xml file using SSIS package.

Each of the banking centers has multiple users. and the data should split here into 2 tables (sql server is the database)
banking centers should go to table1 and users to table2.
I can read a simple XML file with 3 columns (Fst_name, Lst_name, Age) and load onto one table. but here it has to go into two tables.
this requirement is very urgent, please help me out on this.

below is the sample file

<BankingCenters>
<BankingCenter>
<BankingCenterID>14213</BankingCenterID>
<BankingCenterName>West End</BankingCenterName>
<AddressLine1>880 Main Street</AddressLine1>
<AddressLine2>80581</AddressLine2>
<City>Waltham</City>
<State>MA</State>
<ZipCode>02451</ZipCode>
<AssociatesInfo>
<AssociateInfo>
<FRST_NM>ANA I</FRST_NM>
<LST_NM>Kary</LST_NM>
</AssociateInfo>
<AssociateInfo>
<FRST_NM>ANA II</FRST_NM>
<LST_NM>Lou</LST_NM>
</AssociateInfo>
</AssociatesInfo>
</BankingCenter>
<BankingCenter>
<BankingCenterID>14210</BankingCenterID>
<BankingCenterName>East End</BankingCenterName>
<AddressLine1>4212 wood dr</AddressLine1>
<AddressLine2></AddressLine2>
<City>lakemary</City>
<State>FL</State>
<ZipCode>32709</ZipCode>
<AssociatesInfo>
<AssociateInfo>
<FRST_NM>Andy</FRST_NM>
<LST_NM>Miller</LST_NM>
</AssociateInfo>
<AssociateInfo>
<FRST_NM>Joe</FRST_NM>
<LST_NM>Robert</LST_NM>
</AssociateInfo>
</AssociatesInfo>
</BankingCenter>
</BankingCenters>

thanks
Arun
Posted
Comments
Slacker007 8-Dec-10 6:48am    
@arunkhushi: you may want to reformat this XML sample and put the code in the question using the "Code Block" command to make it easier to read.
Abdul Quader Mamun 14-Dec-10 7:06am    
Use pre tag

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900