rss

Building a Google Product Feed in .Net (C#)?

拟墨画扇 提交于 2019-12-07 04:14:22
问题 Below is the schema I am trying to conform to: <?xml version="1.0"?> <rss version="2.0" xmlns:g="http://base.google.com/ns/1.0"> <channel> <title>The name of your data feed</title> <link>http://www.example.com</link> <description>A description of your content</description> <item> <title>Red wool sweater</title> <link> http://www.example.com/item1-info-page.html</link> <description>Comfortable and soft ... cold winter nights.</description> <g:image_link>http://www.example.com/image1.jpg</g

XMLStarlet and RSS

可紊 提交于 2019-12-07 02:19:27
I can't seem to get this basic xslt query working via xmlstarlet. I'm sure I'm missing something obvious, but for the life of me I cannot figure out this syntax, so someone please illuminate me. XML Starlet Command: xml sel -t -m "//rdf:RDF/item" -v link -v description -v link ./sss.rdf sss.rdf: <?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl

RSS XML Parsing issue (How to get media content value from the RSS feed?) [duplicate]

不想你离开。 提交于 2019-12-06 22:32:53
This question already has answers here : Using SimpleXML to read RSS feed (2 answers) Closed 6 years ago . I have a rss feed url which generates an xml as follows: <?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:flow="http://www.flownetworks.com/schemas/media/0.1.0"><channel> <title>flow-Media Catalog</title> <link>http://catalog.flownetworks.com/catalogs/1/videos.mrss</link> <description>Video Catalog</description> <image> <url>http://images.flow-media.com/flow_media_current.png</url> <title>Get to know flow-Media</title> <link>http:/

Google Feed API - returning media:thumbnail

六眼飞鱼酱① 提交于 2019-12-06 21:42:51
I'm currently using the Google Feed API and attempting to retrieve a thumbnail from an RSS feed ("media:thumbnail") The media:thumbnail line in the RSS feed looks like this: <media:thumbnail url="http://anyurl.com/thumbnailname.jpg" width="150" height="150"/> Note: The thumbnail is not part of a media:group The script looks like this: google.load("feeds", "1"); function initialize() { var feed = new google.feeds.Feed("http://website.com/news/feed/"); feed.setNumEntries(20); feed.load(function(result) { if (!result.error) { var container = document.getElementById("feed"); for (var i = 0; i <

Where can I download ROME rss library jar? [closed]

∥☆過路亽.° 提交于 2019-12-06 18:29:56
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . It seems rome downloads no longer exists here (http://java.net/projects/rome/downloads). Where can I download the jar then? is it being discontinued? Thanks, David 回答1: I was able to find it here: http://download.java.net/maven/2/rome/ Source, doc and binary. There is also rome-fetcher if you need it ;). 回答2:

Haskell RSS, mail and XML library choices

自闭症网瘾萝莉.ら 提交于 2019-12-06 17:36:42
问题 I've been learning Haskell for some time now and with every new programming language I learn I do a little project that requires working with a mail server and publishing RSS and Atom content. The only problem is, I can't seem to find decent packages for these or at least can't find any reviews of packages. So I'll ask the community: Any preferred packages for interacting with a mail server? (IMAP, POP3 etc) Any preffered packages for publishing an RSS and/or Atom feed? Failing that, any

XSLT creating a table with varying amount of columns

不问归期 提交于 2019-12-06 16:46:04
I have a RSS feed i need to display in a table (its clothes from a webshop system). The images in the RSS vary in width and height and I want to make a table that shows them all. First off i would be happy just to show all of the items in 3 columns, but further down the road i need to be able to specify through a parameter the amount of columns in my table. I run into a problem showing the tr tag, and making it right, this is my Code so far: <xsl:template match="item"> <xsl:choose> <xsl:when test="position() mod 3 = 0 or position()=1"> <tr> <td> <xsl:value-of select="title"/> </td> </tr> </xsl

Php Rss feed use img in CDATA -> content:encoded

半世苍凉 提交于 2019-12-06 16:36:41
I need to display only the image from the CDATA content. <item> <title>... </title> <link>... </link> <description>... </description> <category>... </category> <pubDate>... </pubDate> <guid>... </guid> <content:encoded><![CDATA[<a href="..."><img alt="" src="..."/></a>...]]></content:encoded> <enclosure url="..." type="image/jpeg" length="171228"></enclosure> </item> my code i tried looks like this an works fine for the part <?php $html = ""; $url = "http://www...."; $xml = simplexml_load_file($url); for($i = 0; $i < 1; $i++){ //works fine with <description> part $description = $xml->channel-

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

风格不统一 提交于 2019-12-06 16:32:48
问题 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? 回答1: 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

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

余生颓废 提交于 2019-12-06 16:22:53
问题 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 = []