rss

Fails reading Google Bookmarks RSS using .NET

白昼怎懂夜的黑 提交于 2019-12-12 03:37:57
问题 Hi I am experiencing weird problem. I want to consume Google Bookmarks RSS in my .NET application. Here is the code: string rssUrl = "https://www.google.com/bookmarks/?output=rss"; NetworkCredential credentials = new NetworkCredential("myusername", "mypassword"); XmlUrlResolver resolver = new XmlUrlResolver { Credentials = credentials }; XmlReaderSettings settings = new XmlReaderSettings { XmlResolver = resolver }; XmlReader reader = XmlReader.Create(rssUrl, settings); XDocument document1 =

iOS table preview image release

∥☆過路亽.° 提交于 2019-12-12 03:36:02
问题 I'm testing an RSS on my iPhone. It uses 0 nib files. I'll try to describe it as best as I can, and will post code if its required, but I bet its a common phenomena with a common solution. The issue is in a tableviewcontroller, and the solution probably needs to be implemented in the CellForRowAtIndexPath method. If I scroll down, preview images stay in their respective spots until the async queue loads the correct image for that cell. So if I have an image for array item 1, and I scroll down

How to consume a RSS feed and read the dc:creator element

谁说胖子不能爱 提交于 2019-12-12 03:22:51
问题 I am trying to get this to work I am using this code and it works fine by itself, but now I am trying to get the following element to be read: dc:creator and are not able to. class file: public class RSSItem { XNamespace dc="http://purl.org/dc/elements/1.1/"; public string Title { get; set; } public string Description { get; set; } public string PubDate { get; set; } public string Link { get; set; } public string strGuid { get; set; } public string Author { get; set; } public string Dc

Reading wordpress RSS with C# - Content different

不羁的心 提交于 2019-12-12 03:09:17
问题 I'm trying to read a RSS generated by wordpress with full text activated. On firefox and IE9 an item data contains the element content:encoded : <content:encoded><![CDATA[bla bla bla]]></content:encoded> but when in a C# program I request the same rss url this node is not present. I do my C# request like this: WebClient client = new WebClient(); client.Encoding = Encoding.UTF8; client.Headers.Add("Accept", "application/xml"); var xml = client.DownloadString(url) Does I have to add an header

jQuery with YQL RSS Feeds randomly returning null

跟風遠走 提交于 2019-12-12 02:49:21
问题 I'm using FeedEk plugin for jQuery which uses the YQL API, to try and display three RSS feeds. Most of the time things are ok but every once in a while I will get a results: null from one of the three feeds, but usually the second and third ones to be called, very rarely the first. I have checked the feeds themselves and they are not showing any issues, I have also tested it on the Yahoo Console and it doesn't show an issue. It's not a call limit issue as I'm barely hitting 300 calls a day

how to add different images in my rss feed using php

…衆ロ難τιáo~ 提交于 2019-12-12 02:45:58
问题 i want to add images dynamically in my rss feed but its only showing thumbs then it disappear see the sample here my images are stored on my server at a folder called "allimages" and all pages are retrieved from mysql database. where em i wrong!!!? Any help ll be appreciated thaanx below is my code <?php header("Content-type: text/xml"); $connection = mysql_connect( "------", "-----", "-----"); mysql_select_db("-------", $connection); $sundo = "SELECT * FROM NEWSPAGES ORDER BY ID DESC LIMIT

node, socket.io - update client when new entry added to news feed?

拥有回忆 提交于 2019-12-12 01:55:34
问题 I've created client and server of node with socket.io . server is executing 4 get requests of news feed and fetched the data. These data is sent to the client with socket.io . client is displaying news feed on the occurrence of specific socket.io event. This works well for once. Here is the code and working fiddle server.js var app = require('http').createServer(handler) , io = require('socket.io').listen(app) , fs = require('fs') , redis = require("redis"); var http = require("http"); //

Remove some <br /> tags from XML weather feed

混江龙づ霸主 提交于 2019-12-12 01:48:30
问题 I'm trying to format a weather feed on my site via an RSS XML, which is easily acheived. The trouble is that it renders cascading down the page, and I want to have it running across the page. From what I can gather, it looks as though I need to get rid of the <br /><br /> tags so they will align next to each other. The XML source looks like this: <description> <![CDATA[ <b>Wednesday</b> <br /> <img src="/images/icons/fcast_30/mostly_cloudy.gif"> <br /> Mostly cloudy<br /> -1°C - 14°C <br />

MWFeedParser in-app web browser INSTEAD of safari

倖福魔咒の 提交于 2019-12-12 01:40:23
问题 So i'm using the MWFeedParser, which I think is a beautiful RSS feed app, but when clicking on a link it goes to Safari. I fear that a good portion of iPhone users are unaware of the fact that they can double-click on the iPhone's one and only button to view all open apps and go back to the RSS feed, and will thus get stuck. Therefore I'd rather use an in-app browser. In other words, currently when I click on a link from MWFeedParser it goes to Safari; I prefer it goes to an in-app browser. I

Returning XML from an AJAX requestfor RSS Feed

对着背影说爱祢 提交于 2019-12-12 01:37:54
问题 I have a website where I'd like to make a request to the BBC RSS feed to return the latest news. The problem is I get the following error: Uncaught SyntaxError: Unexpected token < This is my code: var url = 'http://feeds.bbci.co.uk/news/rss.xml'; $.ajax({ url : url, dataType : 'jsonp', contentType : 'text/xml', success : function(data) { console.log(data); } }); Edit Here is my code on my server, as suggested by the answers below: public XmlDocument callBBCFeed() { HttpWebRequest request =