I am parsing an XML file and have hard coded a method to tear apart a string to create a multidimensional array. Here's a fragment of the XML I am parsing:\[code\]<MeasPropList Path="userList" Type="System.Double[]"> {1960, 1980, 0}, {1980, 0, 0}, {1960, 1980, 1990}</MeasPropList>\[/code\]The <MeasPropList> element is used for any kind of data, not just arrays or numeric.The equivalent result of this XML in C# is: \[code\]double[,] userList = new[,] { { 1960.0, 1980.0, 0.0 }, { 1980.0, 0.0, 0.0 }, { 1960.0, 1980.0, 1990.0 } };\[/code\]I'll spare you the code I am using, it works ok but I am looking for a more elegant solution.
Is there a way I can use Array.ConvertAll<> ?
Is there an XML library function I can use to parse the XML numeric data?
Is there a way I can use Array.ConvertAll<> ?
Is there an XML library function I can use to parse the XML numeric data?