rss

What is the difference between <pubDate> and <lastBuildDate> in RSS?

拜拜、爱过 提交于 2019-12-04 22:14:15
I have the feeling, in every RSS.xml file, both the pubDate and the lastBuildDate match. I am sure that this one, is not always true... So firstly, what is the difference between those two above? Secondly, the RSS readers, sort the content by Date, based on the pubDate or the lastBuildDate? Gabriel Hurley pubDate: The original publication date for the channel or item. (optional) lastBuildDate: The most recent time the content of the channel was modified. (optional) Here are some docs for the optional items in the RSS 2.0 spec . Answers here are all over the place. Some people are getting

How to solve Fatal error: Index out of range in Swift IOS

自闭症网瘾萝莉.ら 提交于 2019-12-04 22:06:24
I have a problem with a code is a RSS reader app for IOS. I have an error Thread 1: Fatal error: Index out of range. I wrote on which line the error is. By the way, this error does happen with all the RSS link I put for example with sky news RSS URL it works well but with some site (like the one I put now) it is not running and write Fatal error: Index out of range ERROR. The Code: import UIKit class FeedListViewController: UITableViewController, XMLParserDelegate { var myFeed : NSArray = [] var feedImgs: [AnyObject] = [] var url: URL! override func viewDidLoad() { super.viewDidLoad()

All nodeValue fields are None when parsing XML

◇◆丶佛笑我妖孽 提交于 2019-12-04 21:56:50
问题 I'm building a simple web-based RSS reader in Python, but I'm having trouble parsing the XML. I started out by trying some stuff in the Python command line. >>> from xml.dom import minidom >>> import urllib2 >>> url ='http://www.digg.com/rss/index.xml' >>> xmldoc = minidom.parse(urllib2.urlopen(url)) >>> channelnode = xmldoc.getElementsByTagName("channel") >>> channelnode = xmldoc.getElementsByTagName("channel") >>> titlenode = channelnode[0].getElementsByTagName("title") >>> print titlenode

Creating a rss feed in Symfony

人盡茶涼 提交于 2019-12-04 21:33:24
I'm trying to create a RSS feed in Symfony. I've added the following route : rss_every_content: url: /rss/all param: { module: content, action: index, sf_format: rss } requirements: sf_method: [get] And I created a file called indexSuccess.rss.php in module/content/templates/ : test message But when I go to the url mysite/rss, all I get is an empty page ! No content at all, not even the debug toolbar... Help ! What is going on ? OrganicPanda I had the same problem as you. I noticed that sf_format: xml with indexSuccess.xml.php seems to work as long as you specify the RSS XML tag at the top

Problems doing ajax-requests with a Phonegap application

柔情痞子 提交于 2019-12-04 21:14:21
问题 I'm trying to create a simple RSS reader with Phonegap and jQuery. I am following this tutorial: http://visualrinse.com/2008/09/24/how-to-build-a-simple-rss-reader-with-jquery/. I've managed to get this working just fine when I try out the code in my browser. The php-file fetches the feed and outputs it just like I expect it to. But when I run the same file from within my compiled Phonegap application the ajax-request just returns the contents of the php-file (the php-code, not the executed

PHP DOMDocument : How to parse xml/rss Tags with CUSTOM field names?

倖福魔咒の 提交于 2019-12-04 20:15:38
I have the below RSS to parse, something like: <?xml version="1.0" encoding="utf-8"?> <rss xmlns:x-wr="http://www.w3.org/2002/12/cal/prod/Apple_Comp_628d9d8459c556fa#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:x-example="http://www.example.com/rss/x-example" xmlns:x-microsoft="http://schemas.microsoft.com/x-microsoft" xmlns:xCal="urn:ietf:params:xml:ns:xcal" version="2.0"> <channel> <item> <title>About Apples</title> <author>David K. Lowie</title> <x-trumba:customfield name="description">This is the description about apples</xCal

Convert XML RSS feed to Json on Angular app

血红的双手。 提交于 2019-12-04 17:19:35
I have an API like this https://blog.com/rss . It returns below xml as blog feed. Note: I have seen this. But it is for nodejs app. https://github.com/nasa8x/rss-to-json So can you tell me how can I retrieve the image , title , date and the description from it? i.e. Json output from it. After that I need to show that on the html page like so: Note: This is just one node. It'll have many nodes according to the feed output. i.e. ngFor loop .html <div class="card"> <div class="card-wrapper"> <img class="card-img-top" src="../../../assets/img/blog-1.png" alt="Card image cap"> <div class="card-body

Android Rss Image Problem

眉间皱痕 提交于 2019-12-04 16:56:20
Hello Everybody I am relatively new to Android Development and I am creating an RSS Reader for a news site. The problem I have is that site with the rss feed of which I want to get images is of a type "< img src="http......"" What I have done for the code on android is ...2 classes ...RssItem and RssItem Displayer public class RssItem { private String title; private String description; private Date pubDate; private String link; private static ImageView image; public RssItem(String title, String description,ImageView image, Date pubDate, String link) { this.title = title; this.description =

Rome XmlReader not reading https feed

回眸只為那壹抹淺笑 提交于 2019-12-04 16:48:52
I am trying to read https://d3ca01230439ce08d4aab0c61810af23:bla@mycon.mycompany.com/recordings.atom using Rome but its giving me error INFO: Illegal access: this web application instance has been stopped already. Could not load org.bouncycastle.jcajce.provider.symmetric.AES$ECB. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. and Server returned HTTP response code: 401 for URL: https://d3ca01230439ce08d4aab0c61810af23:bla@mycon.mycompany.com

WordPress WXR Specification

徘徊边缘 提交于 2019-12-04 16:33:37
问题 I'm trying to find a spec for the WordPress WXR import/export standard and I'm unable to find any official documentation from WordPress on the standard. Does anyone know of an official resource that could tell me exactly how to produce a WXR file so it will automatically import into either WordPress.com or WordPress self-hosted sites? I'm specifically trying to create a WXR export system for an existing CMS so that users can move to WordPress easily. 回答1: I posed this question to John O'Nolan