Fixed Bug in RSSHandler

This commit is contained in:
Daniel Oeh 2012-04-11 16:04:14 +02:00
parent 09c7a5c7db
commit 738585aa61
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ public class RSSHandler extends DefaultHandler {
} else if (qName.equalsIgnoreCase(FeedHandler.TITLE)) { } else if (qName.equalsIgnoreCase(FeedHandler.TITLE)) {
if (active_root_element.equalsIgnoreCase(FeedHandler.CHANNEL)) { if (active_root_element.equalsIgnoreCase(FeedHandler.CHANNEL)) {
feed.setTitle(strBuilder.toString()); feed.setTitle(strBuilder.toString());
} else if(active_root_element.equalsIgnoreCase(FeedHandler.TITLE)) { } else if(active_root_element.equalsIgnoreCase(FeedHandler.ITEM)) {
currentItem.setTitle(strBuilder.toString()); currentItem.setTitle(strBuilder.toString());
} else if(active_root_element.equalsIgnoreCase(FeedHandler.IMAGE)) { } else if(active_root_element.equalsIgnoreCase(FeedHandler.IMAGE)) {
feed.getImage().title = strBuilder.toString(); feed.getImage().title = strBuilder.toString();
@ -62,7 +62,7 @@ public class RSSHandler extends DefaultHandler {
} else if (qName.equalsIgnoreCase(FeedHandler.LINK)) { } else if (qName.equalsIgnoreCase(FeedHandler.LINK)) {
if (active_root_element.equalsIgnoreCase(FeedHandler.CHANNEL)) { if (active_root_element.equalsIgnoreCase(FeedHandler.CHANNEL)) {
feed.setLink(strBuilder.toString()); feed.setLink(strBuilder.toString());
} else if(active_root_element.equalsIgnoreCase(FeedHandler.TITLE)){ } else if(active_root_element.equalsIgnoreCase(FeedHandler.ITEM)){
currentItem.setLink(strBuilder.toString()); currentItem.setLink(strBuilder.toString());
} }
} else if (qName.equalsIgnoreCase(FeedHandler.PUBDATE)) { } else if (qName.equalsIgnoreCase(FeedHandler.PUBDATE)) {