XStream注解方式实现生成的XML带CDATA标签
XStream xStream = WXXStreamHelper.createXstream();xStream.processAnnotations(WeiXinMessage.class);WeiXinMessage msgObj = ...//构造一个WeiXinMessage对象String xml = xStream.toXML(msgObj);
?
?
【版权申明】
本文出自ITEYE BLOG,转载请注明出处:http://qurey.iteye.com/blog/1935897