I have been looking into this the whole day, and I haven't found any good straight answers to my problem. So what i am trying to do, is that I have a XML file where i have defined for example what is the name of the column (In this example, unit price), and what is the type of the column cells (currency in this case). Is there ANY way to read this data from the XML file with C#, so that I could replace "@UnitPrice", OleDbType.Currency and parameterUnitPrice from the code below, with the info from the XML file? Or am I trying to reach heavens here and realize that it's not possible? How should i modify my code in order to do what im trying to do, and how to read the data from XML file?
Dim parameterUnitPrice as OleDbParameter = _ new OleDbParameter("@UnitPrice", OleDbType.Currency) parameterUnitPrice.Value = dblPrice myCommand.Parameters.Add(parameterUnitPrice)