I don't know how to parse rss blogger

北慕城南 提交于 2019-12-06 14:41:56

You can try this library: https://github.com/Pkmmte/PkRSS

It works with most RSS2 and Atom feeds but allows you to plug in your own parser if necessary.

The Somberi

Try my AndroidWithoutStupid library. I tested it with the links you have given and it works fine. https://github.com/vsubhash/AndroidWithoutStupid

Example is here https://stackoverflow.com/a/24587871/2014914

Update:

MvGeneral.startSyncDownload("http://www.example.com/rss.xml", "/mnt/sdcard/rss.xml");
MvNewsFeed oFeed = new MvNewsFeed("/mnt/sdcard/rss.xml");
for (int i = 0; i < oFeed.moMessages.size(); i++) {
  Log.d("YOUR_TAG", oFeed.moMessages.get(i).msMessageTitle);
  Log.d("YOUR_TAG", oFeed.moMessages.get(i).msMessageContent);
  Log.d("YOUR_TAG", oFeed.moMessages.get(i).msMessageLink);
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!