*
* @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) {
Integer val = NumberParser.parseInt(e.getText());
if (val != null) {
image.setWidth(val.intValue());
}
}
e = eImage.getChild("height",getRSSNamespace());
if (e!=null) {
Integer val = NumberParser.parseInt(e.getText());
if (val != null) {
image.setHeight(val.intValue());
}
}
e = eImage.getChild("description",getRSSNamespace());
if (e!=null) {
image.setDescription(e.getText());
}
}
return image;
}