*
* @param rssRoot the root element of the RSS document to parse for image information.
* @return the parsed RSSImage bean.
*/
protected Image parseImage(Element rssRoot) {
Image image = super.parseImage(rssRoot);
if (image!=null) {
Element eImage = getImage(rssRoot);
Element e = eImage.getChild("width",getRSSNamespace());
if (e!=null) {
image.setWidth(Integer.parseInt(e.getText().trim()));
}
e = eImage.getChild("height",getRSSNamespace());
if (e!=null) {
image.setHeight(Integer.parseInt(e.getText().trim()));
}
e = eImage.getChild("description",getRSSNamespace());
if (e!=null) {
image.setDescription(e.getText());
}
}
return image;
}