Possible Duplicate:
Import XML to SQL using C#
I just downloaded about 3000 XML files from soap web service and I want to import them into SQL Server. Here is an xml:
<my:SAP_kis_bil>
<my:sap_code>2223M2F024153</my:sap_code>
<my:sap_education>11</my:sap_education>
<my:sap_kron>no</my:sap_kron>
<my:sap_miltpos>soldier</my:sap_miltpos>
<my:sap_miltgroup>2</my:sap_miltgroup>
<my:sap_miltcat>CA</my:sap_miltcat>
<my:sap_milttermdate>1970-11-20</my:sap_milttermdate>
<my:sap_miltstartdate>1979-11-20</my:sap_miltstartdate>
<my:sap_birthdate>1900-09-20</my:sap_birthdate>
<my:sap_miltno>HZ 2931559</my:sap_miltno>
</my:SAP_kis_bil>
<my:LG_kis_bil>
<my:lg_code>2223M2F024153</my:lg_code>
<my:lg_name>John</my:lg_name>
<my:lg_birthdate>1900-09-20</my:lg_birthdate>
<my:lg_miltstatus>TECl</my:lg_miltstatus>
<my:lg_drivingclass></my:lg_drivingclass>
<my:lg_mobile1>+82316721233</my:lg_mobile1>
</my:LG_kis_bil>
About 3000 xml files like this one. So we have "lg_" and "sap_" and some of them should be sorted in SQL Server as multirow. I already have several sql tables like this:
CREATE TABLE [dbo].[TBL_SAP_XARICI](
[code] [nvarchar](50) NULL,
[orgname_x] [nvarchar](100) NULL,
[orgdiv_x] [nvarchar](100) NULL,
[orgplace_x] [nvarchar](100) NULL,
[orgpos_x] [nvarchar](100) NULL,
[orgstartdate_x] [date] NULL,
[orgenddate_x] [date] NULL,
[orgendreason_x] [nvarchar](100) NULL,
[orgcountry_x] [nvarchar](50) NULL
) ON [PRIMARY]
Now I need to realize (import, transfer) this in C# console application. But this is my first experience. Please help to realize application in C# or just "show the way". Thank you.