protected String getRSSVersion() {
return "0.94";
}
protected WireFeed parseChannel(Element rssRoot) {
Channel channel = (Channel) super.parseChannel(rssRoot);
Element eChannel = rssRoot.getChild("channel",getRSSNamespace());
List eCats = eChannel.getChildren("category",getRSSNamespace());
channel.setCategories(parseCategories(eCats));
Element eTtl = eChannel.getChild("ttl",getRSSNamespace());
if (eTtl!=null && eTtl.getText() != null ) {
Integer ttlValue = null;
try{
ttlValue = new Integer(eTtl.getText());
} catch(NumberFormatException nfe ){
; //let it go by
}
if (ttlValue != null) {
channel.setTtl(ttlValue.intValue());
}
}
return channel;
}