String title = docEle.getElementsByTagName("title").item(0).getTextContent();
NodeList nl = docEle.getElementsByTagName("item");
if (nl != null && nl.getLength() > 0) {
for (int i = 0 ; i < nl.getLength(); i++) {
Element el = (Element) nl.item(i);
items.add(new RSSItemImpl(el.getElementsByTagName("title").item(0).getTextContent(), el.getElementsByTagName("link").item(0).getTextContent(), el.getElementsByTagName("description").item(0).getTextContent()));
}
}
rssItems = new RSSImpl(url, title, items);
} catch (SAXException e) {