EDN Admin
Well-known member
Hi All
Wondering if someone can offer me some advice on whether xml is a suitable solution for an application Im developing or if I should choose another option.
Ive used xml files in VB.net fairly extensively for storing configuration files and the like but Im wondering if that is a suitable solution for storing more dynamic data.
Im developing an vb.net service that will retrieve values from a number of sensors at given intervals (could be seconds, minutes or hours) do some calculations and then store this value. I want to keep it fairly light weight and I only want to store
the last value not previous values however I want this stored in a way that could be used by myself or others in separate applications, web services or use the values to store in a database. This might occur locally or over a network.
The data stored for each sensor might be similar to the follwing
Date/Time, Name, AValue, BValue, CValue, etc.
Because the service will be updating this information independently of the applications/services reading it (or possible updating it) I want to avoid conflicts between reading and writing, partially updated fields etc.
Is an xml file suitable for this type of situation? Would a separate xml files be preferable for each sensor or a single xml file with all sensor values? Or is there another option I should be considering?
Any suggestions would be appreciated.
Ian
View the full article
Wondering if someone can offer me some advice on whether xml is a suitable solution for an application Im developing or if I should choose another option.
Ive used xml files in VB.net fairly extensively for storing configuration files and the like but Im wondering if that is a suitable solution for storing more dynamic data.
Im developing an vb.net service that will retrieve values from a number of sensors at given intervals (could be seconds, minutes or hours) do some calculations and then store this value. I want to keep it fairly light weight and I only want to store
the last value not previous values however I want this stored in a way that could be used by myself or others in separate applications, web services or use the values to store in a database. This might occur locally or over a network.
The data stored for each sensor might be similar to the follwing
Date/Time, Name, AValue, BValue, CValue, etc.
Because the service will be updating this information independently of the applications/services reading it (or possible updating it) I want to avoid conflicts between reading and writing, partially updated fields etc.
Is an xml file suitable for this type of situation? Would a separate xml files be preferable for each sensor or a single xml file with all sensor values? Or is there another option I should be considering?
Any suggestions would be appreciated.
Ian
View the full article