Need help with dynamic data

Apr 26, 2010 at 6:51 PM

being fed an xml that looks like this......

      <ChartYValue>135235, 155535, 141725</ChartYValue>
      <ChartXValue>6.1, 6.3, 6.5</ChartXValue>
      <ChartYValue>106765, 131725, 127868</ChartYValue>
      <ChartXValue>6.8, 7.1,7.3</ChartXValue>
      <ChartYValue>108456, 119326, 139326</ChartYValue>
      <ChartXValue>7.6, 7.8, 8.0</ChartXValue>


and I need to convert that data into

double[,] _chartYValues = {{135235, 155535, 141725},
                              {106765, 131725, 127868},
                              {108456, 119326, 139326}};

but having serious trouble.  can anyone help?  I'm pulling in the xml just fine, but iterating through the entry nodes and formating the results is giving me a headache.


thanks in advance