Getting raw XML data from a Feedburner RSS feed

前端 未结 10 2181
轮回少年
轮回少年 2021-02-05 00:22

For an Android app I am currently working on, I would like to be able to parse raw XML data from an RSS feed and display it. The RSS feed in question uses Feedburner for publish

相关标签:
10条回答
  • 2021-02-05 00:38

    From Google Chrome you can update the url like so and you will get the raw xml:

    view-source:http://feeds.feedburner.com/TheAppleBlog

    0 讨论(0)
  • 2021-02-05 00:41

    Feedburner original feed url for blogger as below {blogname}/feeds/posts/default?alt=rss

    then convert it in flash Tutorial at http://alaashaker.wordpress.com/2008/09/09/build-your-own-flash-rss-reader-tutorial-flash-actionscript-30/

    0 讨论(0)
  • 2021-02-05 00:44

    You should use ?format=xml to get raw XML for a feed. Indeed, both ways of retrieving feed XML works. But not always. ?format=xml however worked on all feed I've tried, but ?fmt=xml does not. I could guess, fmt is legacy parameter, as the feeds where View feed XML button available use format.

    Often, FeedBurner provides XML feed directly (don't be confused with stylesheets used to prettify RSS).

    0 讨论(0)
  • 2021-02-05 00:46

    Feedburner feeds send the browser back raw XML, but it also sends a stylesheet that styles the XML markup, so the browser renders the XML as styled content:

    <?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?>
    

    However the data being served up is XML.

    So it's completely unnecessary to add query params like ?format=xml. If you log the response from a request to one of these feeds, or view source, you'll see XML.

    0 讨论(0)
  • 2021-02-05 00:50

    In Google Chrome you might need to apply both methods described here at the same time (?format=xml and view-source:):

    view-source:http://feeds.feedburner.com/TheRegardingBlog?format=xml
    
    0 讨论(0)
  • 2021-02-05 00:51

    @Shimmy @Jordan As a matter of fact it works, if you check the source of the webpage when accessing the page you will notic that normal access provides an HTML page , and accessing with ?fmt=xml param provides and XML feed.

    The result keeps being the same in a browser because the XML feed is also formatted using an XSL stylesheet, yielding the same appearance that you would get without using the xml parameter.

    0 讨论(0)
提交回复
热议问题