/** * When parsing this RSS XML document, this indicates the body of an XML tag * * @param qname * @param chars * @param attributes */ protected synchronized void parseElement( final String qname, final String chars, final XMLAttributes attributes) { try { if (currentItem != null) { synchronized (currentItem) { if (qname.equals("title")) { currentItem.setTitle(chars); } else if (qname.equals("description")) { currentItem.setDescription(chars); } else if (qname.equals("link")) { currentItem.setLink(chars); } else if (qname.equals("pubDate")) { currentItem.setPubDate(chars); } else if (qname.equals("media:thumbnail")) { currentItem.setThumbnail((String) attributes.getValue("url")); } } } } catch (Exception e) { // #debug L.e("RSS parsing error", "qname=" + qname + " - chars=" + chars, e); } }