日期:2014-05-18 浏览次数:20586 次
StringBuilder xmlDoc = new StringBuilder();
xmlDoc.Append("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>");
xmlDoc.Append("<table id = 'returnMainXmlTable' >");
foreach (string key in dtable.Keys)
{
Dictionary<string, object> dictNote = (Dictionary<string, object>)dtable[key];
xmlDoc.Append("<tr>");
xmlDoc.Append("<td name='id'>" + dictNote["id"].ToString() + "</td>");
xmlDoc.Append("<td name='pageName'>" + dictNote["pageName"].ToString() + "</td>");
xmlDoc.Append("<td name='content'>" + dictNote["text"].ToString() + "</td>");
xmlDoc.Append("</tr>");
}
xmlDoc.Append("</table>");
context.Response.Write(xmlDoc.ToString());