var document = new XmlDocument();
document.LoadXml(result);
var nodes = document.SelectNodes("//Customers/quote");
string output = String.Empty;
for (int count = 0; count < nodes.Count; count++)
{
var quote = nodes[count];
if (quote != null)
{
var nameNode = quote.SelectNodes("service/name");
if (nameNode != null)
{
output += nameNode[0].InnerText;
}
var amountNode = quote.SelectNodes("rate/amount");
if (amountNode != null)
{
output = string.Format("{0}@{1}", output, amountNode[0].InnerText);
}
}
output = string.Format("{0}, ", output);
}