Instead of parsing this by hand, why not use c# xml parsing to grab the values.