XStream xstream =newXStream();
xml序列化;
xstream.toXML(对象);
可用xstream.alias("根结点",根结点.class)改标题名字
解析框架:
xtream.fromXML(xml);
返回一个字符串
XStream xstream =newXStream();
xml序列化;
xstream.toXML(对象);
可用xstream.alias("根结点",根结点.class)改标题名字
解析框架:
xtream.fromXML(xml);
返回一个字符串