Django the rss library generated xml Why does the browser does not resolve it?
URL configuration: from blog.feeds import RssSiteNewsFeed urlpatterns = [ url(r'^rss.xml$', RssSiteNewsFeed()), ] Feeds module: #!/use/bin/env python # _*_ coding:utf-8 __ from django.contrib.syndication.views import Feed from .models import Article from django.utils.feedgenerator import Rss201rev2Feed class CorrectMimeTypeFeed(Rss201rev2Feed): mime_type = 'application/xml' class RssSiteNewsFeed(Feed): feed_type = CorrectMimeTypeFeed author_name = "" title = "" link = "" description = "" def items(self): return Article.objects.all().order_by('-created_time')[:5] def item_title(self, item): return item.title def item_link(self, item): return '/article/%s' % item.url Then there is a strange phenomenon, img Obviously has been parsed out xml content, there are two issues: Why parse out of the content is parsed twice? The browser explicitly said is Content-Type: application / rss + xml;charset = utf-8 types of documents, but why show the exact string? And should not display the contents of xml format.
Analyzing tree/structure of XML (tags referencing eachother)
Json parsing vs xml parsing? [closed]
unable to write xml sitemap in cakephp
Transform XML using XSL
VBS append a child node
Know when an image has completed loading from a server
treegrid with json in jqgrid (adjacency), jqgrid not displaying data with json?
Using XSLT can I prevent output of consecutive identical values?
Issues with comma separated data with XSLT
Spring servlet-context.xml error with mongo
iterating over all the subdirectories looking for XML files - Perl
aperte work flow import bpm file
Using XSLT to preprocess #ifdefs in XML
Read and change multiple XML files in Excel (2007) VBA
Groovy Grails test case error when converting to xml
Return xml data from action - CakePHP