rss

hexadecimal value 0x1F, is an invalid character

故事扮演 提交于 2019-12-13 04:12:18
问题 I am getting the following error: ' ', hexadecimal value 0x1F, is an invalid character Here is my function. I get this error when it hits "reader.MoveToContent()" for the first time. Can anyone point me in the right direction? Public Function GetSyndicationFeedData(ByVal urlFeedLocation As String) As SyndicationFeed Dim settings As New XmlReaderSettings() With { _ .IgnoreWhitespace = True, _ .CheckCharacters = True, _ .CloseInput = True, _ .IgnoreComments = True, _

How to query the <entry> nodes from an ATOM feed

↘锁芯ラ 提交于 2019-12-13 04:04:49
问题 I can query the description nodes in an RSS feed and return a result like this: $xpath = new DOMXPath($xmlDoc); $items = $xpath->query('/rss/channel/item/description/..'); foreach($items as $number => $item){} But it returns nothing when I query the entry nodes from an Atom feed like this (in which I follow the same pattern as RSS's above): $xpath = new DOMXPath($xmlDoc); $items = $xpath->query('/feed/entry/..'); foreach($items as $number => $item){} What am I missing? 回答1: There is no RSS

Encoding: certain characters coming back wrecked through cURL request?

半城伤御伤魂 提交于 2019-12-13 03:55:24
问题 I have a PHP-powered RSS feed caching system. If a feed contains certain characters, e.g. curly quotes/apostrophes, these are coming back in the cURL response wrecked. Example feed: http://www.theguardian.com/football/hullcity/rss (note curly apostrophes) cURL code: $ch = curl_init($url); curl_setopt_array($ch, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_TIMEOUT => CURL_CONNECT_TIMEOUT )); Resultant data (extract from): Sergio Agüero is firing again, José Mourinho’s propaganda ... Is

How Feedburner knows number of subscribers to a RSS Feed?

两盒软妹~` 提交于 2019-12-13 03:49:44
问题 Feedburner(http://feedburner.google.com) provides statistics about RSS feed of subscribers and reaches. This is interesting. It is easy to understand that Feedburner can count visits (reaches) to a RSS feed. But, how does Feedburner get to know subscribers to a RSS feed. In my understanding, each requests to RSS Feed URI is independent. There are no cookies or identity validation. So, how does feedburner know how many subscribers to a RSS feed? 回答1: The easy part is Google tell it the number

How to remove images and text from RSS feed description tag?

前提是你 提交于 2019-12-13 03:48:02
问题 I'm getting the description from some RSS feed websites, Some of these description contain images and specific text I want to remove. The code to get the feed: $rss = simplexml_load_file($website); foreach ($rss->channel->item as $item) { $description = (string)$item->descritpion; } These are the different formats I get: <description><![CDATA[ <p> //Post Description </p> <p>The post <a rel="nofollow" href=""> //Post Title.</a> appeared first on <a rel="nofollow" href="">//Feed Website.</a>. <

RSS feed PHP/MySQL

﹥>﹥吖頭↗ 提交于 2019-12-13 03:42:20
问题 Is there a good PHP Class to generate a RSS file from mysql tables? 回答1: There are ready to use classes for building rss feeds like this one found on phpclasses.org but it is just as easy to read up on the rss spec and generate the XML yourself with XMLWriter which is based on libxml and included in PHP5. When you are actually generating the feeds yourself it never hurts to understand the spec. 回答2: I've wrote few hours ago small classes and tested it with feed validator and it work really

Windows phone refresh/update listbox items

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 03:33:56
问题 I have a problem with a RSS feed app. When my app launches, the listbox gets the feeds and show them in my listbox, but when i press my refresh button the listbox never updates, it just show the same items again, but if i close the app, and then relaunch it, it will show the latest feeds. I hope there is someone that can help. Thanks. MainWindow.xaml: <ListBox Grid.Row="1" Name="feedListBox" ScrollViewer.VerticalScrollBarVisibility="Auto" SelectionChanged="feedListBox_SelectionChanged">

Repost: Creating a RSS feed with PHP

怎甘沉沦 提交于 2019-12-13 02:55:50
问题 I asked how to do this before but it seems I needed to put more code to really get an answer. I have a reddit type site, and I am trying to create a rss feed this is the code, but I get a Fatal error: Uncaught exception 'Exception' with message 'Query failed' Here its the code: <?php require_once($_SERVER['DOCUMENT_ROOT'].'/config.php'); require_once(SITE_ROOT.'includes/exceptions.php'); require_once(SITE_ROOT.'data/model.php'); require_once(SITE_ROOT.'data/comment.php'); class Article

Java Sax Parser only returning one line of a tag

主宰稳场 提交于 2019-12-13 02:37:42
问题 I am trying to parse the description tag in the xml but it only outputs one line: description: <img src=http://www.ovations365.com/sites/ovations365.com/images/event/441705771/sparkswebsite_medium.jpg alt="SPARKS: Understanding Energy"> That is only a small part of the text in the CDATA and I'm trying to output the description for multiple items. Why can't I get the whole CDATA? The XML is located: http://feeds.feedburner.com/Events-Ovations365 package com.example.ovations_proj; import java

How do I add image to RSS Feed Yahoo Weather

余生颓废 提交于 2019-12-13 02:36:53
问题 does anyone know how to get the image from Yahoo weather and display it on the android? The Image that I'm using and the website that I'm using to retrieve the weather is http://weather.yahooapis.com/forecastrss?w=1062617&u=c It is in RSS format. I'm able to retrieve the weather information, however, I couldn't retrieve the image of the weather. May I know is there any ways to retrieve it? I'm a newbie to android and I'm using Eclipse. I would need your kind advice. Thank you MainActivity