protected Image parseImage(final Element rssRoot) {

        Image image = null;

        final Element eImage = getImage(rssRoot);
        if (eImage != null) {

            image = new Image();

            final Element title = eImage.getChild("title", getRSSNamespace());
            if (title != null) {
                image.setTitle(title.getText());
            }

            final Element url = eImage.getChild("url", getRSSNamespace());
            if (url != null) {
                image.setUrl(url.getText());
            }

            final Element link = eImage.getChild("link", getRSSNamespace());
            if (link != null) {
                image.setLink(link.getText());
            }

        }

        return image;

    }
protected Image parseImage ( final Element rssRoot ) { Image image = null ; final Element eImage = getImage ( rssRoot ) ; if ( eImage != null ) { image = new Image ( ) ; final Element title = eImage . getChild ( "title" , getRSSNamespace ( ) ) ; if ( title != null ) { image . setTitle ( title . getText ( ) ) ; } final Element url = eImage . getChild ( "url" , getRSSNamespace ( ) ) ; if ( url != null ) { image . setUrl ( url . getText ( ) ) ; } final Element link = eImage . getChild ( "link" , getRSSNamespace ( ) ) ; if ( link != null ) { image . setLink ( link . getText ( ) ) ; } } return image ; }
Parses the root element of an RSS document looking for image information.
<p/>
It reads title and url out of the 'image' element.
<p/>

@param rssRoot the root element of the RSS document to parse for image information.
@return the parsed image bean.