读取数据库 生成Xml节点
foreach (DataColumn v in dt.Columns) { sb.Append("sb.Append(\"<" + v.ColumnName.ToUpper() + ">\");\r\n"); sb.Append("sb.Append(info." + v.ColumnName + ");\r\n"); sb.Append("sb.Append(\"</" + v.ColumnName.ToUpper() + ">\");\r\n"); }
foreach (DataColumn v in dt.Columns) { sb.Append("sb.Append(\"<" + v.ColumnName.ToUpper() + ">\");\r\n"); sb.Append("sb.Append(info." + v.ColumnName + ");\r\n"); sb.Append("sb.Append(\"</" + v.ColumnName.ToUpper() + ">\");\r\n"); }