XStream xStream = new XStream(); xStream.processAnnotations(XmlBean.class); XmlBean fromXML = (XmlBean) xStream.fromXML(result); List<News> news = fromXML.newslist.news;
XStream xStream = new XStream(); xStream.processAnnotations(XmlBean.class); XmlBean fromXML = (XmlBean) xStream.fromXML(result); List<News> news = fromXML.newslist.news;