开发者

iphone xml parses text but no images or paragraph spacing

开发者 https://www.devze.com 2023-01-06 14:27 出处:网络
i am trying to parse an xml blog found here: http://www.feed43.com/1515171705611023.xml it has pictur开发者_StackOverflow社区es within the text. I am able to parse the headers, the content and the li

i am trying to parse an xml blog found here: http://www.feed43.com/1515171705611023.xml

it has pictur开发者_StackOverflow社区es within the text. I am able to parse the headers, the content and the link of the individual posts.

I, however, cannot get it to parse the paragraph spacing links within the text or images. all three of these are EXTREMELY important.

I am using this: http://github.com/mwaterfall/MWFeedParser with very few changes. most them having to do with appearances and the actual feed loaded as well as using a scroll view for the detail view instead of the table view shown.

note: it didnt load these things before I made changes either.

Can anyone help me?


What you are looking for is an html renderer, not an xml parser. On iPhone, that is WebKit, which can be used through UIWebView.

Extract the html embedded in the rss formatted xml and place it in a UIWebView using loadHTMLString. Usually, the baseURL will be the same as the rss source, without the filename.

0

精彩评论

暂无评论...
验证码 换一张
取 消