// map生成xml
public static String mapToxml(Map<String, String> map)
{
String xml = "<xml>";
for (String item : map.keySet())
{
xml += "<" + item + ">";
xml += map.get(item);
xml += "</" + item + ">";
}
xml += "</xml>";
return xml;
}
网友评论