I could figure out ways to get image url from the feed. Part of the problem is because Rome doesn't use Generics; so was not able to read <media:thumbnail..
element properly and hence was loosing the url of the image which comes as attribute.
After debugging i could figure out exact Parameterized type and then it was easy :)
List<Element> foreignMarkups = (List<Element>) entry.getForeignMarkup();
for (Element foreignMarkup : foreignMarkups) {
String imgURL = foreignMarkup.getAttribute("url").getValue();
//read width and height
}
This blog helped me to understand the architecture of Rome
Also what i have found is for some of the news feeds; url of the image is inside Enclosure element like below:
<enclosure url="http://www.wired.com/reviews/wp-content/uploads/2013/02/lights_remote_1-200x100.jpg" type="image/jpeg" length="48000"/>
So i am also checking in enclosure
element if <media:thumbnail..
element is not present in the feed:
List<SyndEnclosure> encls = entry.getEnclosures();
if(!encls.isEmpty()){
for(SyndEnclosure e : encls){
String imgURL = e.getUrl().toString();
}
}