XStream xStream = new XStream(); xStream.processAnnotations(XmlBean.class); XmlBean fromXML = (XmlBean) xStream.fromXML(result); Listnews = fromXML.newslist.news;
本文共 245 字,大约阅读时间需要 1 分钟。
XStream xStream = new XStream(); xStream.processAnnotations(XmlBean.class); XmlBean fromXML = (XmlBean) xStream.fromXML(result); Listnews = fromXML.newslist.news;
转载于:https://www.cnblogs.com/8023-itxinde/p/5352076.html