Click here to Skip to main content
14,733,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,

i have done below code in console application . to read values from XML .it is working fine.

DataSet dataSet = new DataSet();

                                dataSet.ReadXml(@"..\..\CustomerDetails.xml");//Template file location

                                DataTable HeaderColumns_xml = new DataTable();

                                HeaderColumns_xml = dataSet.Tables[0];

                                ArrayList a2 = new ArrayList();
                                foreach (DataColumn column in HeaderColumns_xml.Columns)
                                {
                                    // string columnName = (HeaderColumns_xml.Rows[0][column.ColumnName].ToString().Trim());

                                    a2.Add(HeaderColumns_xml.Rows[0][column.ColumnName].ToString().Trim()); //loading header from XML

                                }


same think i implemented in SSIS Script task.But it was not taking XML file path properly. the error "file not found " came
Posted

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