Disappointed, this is not the first time I'm posting this kind of a request
for help, but no helpful answer was posted yet.
I'll try make my question as clear as I can:
(1) I wish to write an XML file. this file will contain any number of
parameters to be used in my C# code as database.
(2) This file may contain any number of parameters, and I will know the
number of the parameters only at run time.
(3) Any parameter must have a name, but this name may be any name, and I
will know the names of the parameters only at run time.
(4) Any parameter must have a type, this type can be of any well known type
(int, string, float, dateTime, byte etc.), and I will know these types only
at run time.
(5) Any parameter may or may not have several more attributes
(authorization, precision, range), I will now if any of this attributes exist
only at run time.
(6) Any parameter will have a value of the type as described above.
I need to read this parameters form the XML file as their real value without
doing any code switching, and to assign these values to my run time data
members.
I thought I'll be able to load the XML file into DataSet and read the
parameters from it. But I'll be happy to use any other solution you may have.
---------
Thanks
Sharon