char elemChar = elementName.charAt(0);
switch (elemChar) {
case 'i':
if (elementName.equals("item") ) {
/** Save previous entry */
RssItunesItem item = createItem();
if ( item != null) {
items.addElement( item );
if(items.size()==maxItemCount) {
return feed;
}
}
/** New entry */
/** reset */
reset();
continue;
}
break;
case 't':
// Textinput has required sub element description.
// We don't want the overriding description.
if (elementName.equals("textinput") ) {
String textData = parser.getText(false);
//#ifdef DLOGGING
//@ if (finestLoggable) {logger.finest("skipping textinput data=" + textData);}
//#endif
continue;
}
break;
default:
}
parseItem(parser, elemChar, elementName);
}
/** Save previous entry */
RssItunesItem item = createItem();
if ( item != null) {
items.addElement( item );
}
return feed;