*
* @param rssRoot the root element of the RSS document to parse for image information.
* @return the parsed image bean.
*/
protected Image parseImage(Element rssRoot) {
Image image = null;
Element eImage = getImage(rssRoot);
if (eImage!=null) {
image = new Image();
Element e = eImage.getChild("title",getRSSNamespace());
if (e!=null) {
image.setTitle(e.getText());
}
e = eImage.getChild("url",getRSSNamespace());
if (e!=null) {
image.setUrl(e.getText());
}
e = eImage.getChild("link",getRSSNamespace());
if (e!=null) {
image.setLink(e.getText());
}
}
return image;
}