XStream xStream = new XStream(); xStream.processAnnotations(XmlBean.class); XmlBean fromXML = (XmlBean) xStream.fromXML(result); List<News> news = fromXML.newslist.news;
时间: 2025-01-10 07:49:54
XStream xStream = new XStream(); xStream.processAnnotations(XmlBean.class); XmlBean fromXML = (XmlBean) xStream.fromXML(result); List<News> news = fromXML.newslist.news;