Parsing an RSS feed to output HTML
This has been working for over a year:
<cfset feedURL = "
http://feeds.feedburner.com/YakBlog">
<cfhttp url="#feedUrl#" method="get" />
<cfset rss = XMLParse(cfhttp.filecontent)>
<cfset items = XMLSearch(rss, "//:item")>
<cfset yakItems = QueryNew("title,description,link")>
<cfloop from="1" to="#arrayLen(items)#" index="i">
<cfset row = QueryAddRow(yakItems)>
<cfset title = XMLSearch(rss, "//:item[#i#]/:title")>
<cfif ArrayLen(title)>
<cfset title = title[1].xmltext>
<cfelse>
<cfset title="">
</cfif>
<cfset description = XMLSearch(items
, "//:item[#i#]/:description")>
<cfif ArrayLen(description)>
<cfset description = description[1].xmltext>
<cfelse>
<cfset description="">
</cfif>
<cfset link = XMLSearch(items,
"//:item[#i#]/:link")>
<cfif ArrayLen(link)>
<cfset link = link[1].xmlText>
<cfelse>
<cfset link="">
</cfif>
<cfset QuerySetCell(yakItems, "title", title, row)>
<cfset QuerySetCell(yakItems, "description", description,
row)>
<cfset QuerySetCell(yakItems, "link", link, row)>
</cfloop>
<ul>
<cfoutput query="yakItems" maxrows="5">
<li style="margin-bottom:8px;"><a
href="#link#">#title#</a></li>
</cfoutput>
</ul>
Suddenly I'm getting this error error:
Element XMLTEXT is undefined in a Java object of type class
coldfusion.xml.XmlNodeMap referenced as
I've uploaded this test page and you can see the full error
here:
Element XMLTEXT is undefined in a Java object of type class
coldfusion.xml.XmlNodeMap referenced as
Any ideas what's going on?
http://www.checkpointzero.com/test.cfm
<cfset items = XMLSearch(rss, "//:item")> is returning
an array of xml objects so the subsequent searches of <cfset
description = XMLSearch(items, "//:item[#i#]/:description")> are
not working against an XML object
if you change the items reference to reference the individual
item it will work again.
<cfset description = XMLSearch(items
, "//:item[#i#]/:description")>
Not sure why you were grabbing the title from the rss object
and then grabbed the rest of the data from the items object, but
here's a shorter script that may help;
<cfloop from="1" to="#arrayLen(items)#" index="i">
<cfset row = QueryAddRow(yakItems)>
<cfif IsXmlElem(items.title)>
<cfset QuerySetCell(yakItems,"title",items
.title.xmlText)>
</cfif>
<cfif IsXmlElem(items.description)>
<cfset QuerySetCell(yakItems,"description",items
.description.xmlText)>
</cfif>
<cfif IsXmlElem(items.link)>
<cfset QuerySetCell(yakItems,"link",items
.link.xmlText)>
</cfif>
</cfloop>
Similar Messages
-
Bookmark opens RSS feed instead of HTML
Hi -
This has happened to me several times and I don't know why. I will use a bookmark to open a specific page, and I'll get the feed:// instead of the html page. In addition, my bookmark then changes to the RSS feed. Anyone else ever had this happen?
RonWhy not relate your symptoms for the benefit of those of us
who don't see
the original post?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"VincentRommelaars" <[email protected]>
wrote in message
news:fq1dje$7g7$[email protected]..
> I've got the same problem, but I got it on a PC with
Windows XP Pro.
> Does anybody know which config file to delete on a PC?
>
> Thanks! -
Parsing blogger rss feed ! Is it possible
Hi
I try to parse an blogger feed
http://www.lapenderiedechloe.com/feeds/posts/default
I work on part of the feed :
var myXm : XML = <feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:georss="http://www.georss.org/georss" xmlns:thr="http://purl.org/syndication/thread/1.0">
<id>tag:blogger.com,1999:blog-990363500266599125</id>
<updated>2011-10-22T10:58:04.459+02:00</updated>
<category term="ShowRoom Mode"/>
<category term="Concourons"/>
<category term="Get the look"/>
<category term="Rams23"/>
<category term="Pirate Parfum"/>
<category term="Video: la minute blonde"/>
<category term="Easy Make Up"/>
<category term="Trépied"/>
<category term="Fruit Rouge"/>
<category term="Saraha"/>
<category term="Look du jour bonjour"/>
<category term="Marque à suivre"/>
<category term="Coup de coeur"/>
<category term="Chloé en 2D"/>
<category term="Sélection Shopping"/>
<category term="Coiffure/Make Up"/>
<category term="kling"/>
<category term="South Park"/>
<category term="Fashion obsession"/>
<category term="partenariat"/>
<category term="Article Sponsorisé"/>
<category term="Shooting spécial"/>
<category term="Eleven Paris"/>
<category term="Shopping"/>
<category term="Déboires capilaires"/>
<category term="Peudo-réflexion mode"/>
<category term="Walldress"/>
<category term="Rocket Dog"/>
<category term="JC/DC"/>
<category term="Vide dressing"/>
<category term="Party Girl"/>
<category term="Aphrodisiak Leather"/>
<category term="Emmaüs"/>
<category term="beauté"/>
<category term="Drolatic"/>
<category term="bordeaux"/>
<category term="Evénements"/>
<category term="Bijoux/Accessoires"/>
<category term="A propos du blog"/>
<category term="Bon plan"/>
<category term="Inspirations"/>
<category term="My sweet dressing"/>
<category term="Bobbies"/>
<category term="Bershka"/>
<category term="Les JBB jolies boutiques bordelaises"/>
<category term="Blogosphère"/>
<category term="Les soldes c'est la vie"/>
<category term="Manie"/>
<category term="Mia Reva"/>
<category term="tendance insolence"/>
<category term="French Place"/>
<category term="Betty London"/>
<category term="ZnJ"/>
<category term="Le blabla de Chloé"/>
<category term="Bournemouth"/>
<category term="Vero Moda"/>
<category term="Faguo"/>
<category term="Les petites breloques"/>
<category term="Monoprix"/>
<category term="Nouveauté shopping"/>
<category term="Spartoo"/>
<category term="test e-hop"/>
<category term="Motel"/>
<category term="Haul"/>
<category term="Morceaux de vie"/>
<category term="Collaboration"/>
<category term="SlowFashion Street"/>
<category term="La mode"/>
<category term="institut arnaud"/>
<category term="Zara"/>
<category term="panty"/>
<category term="Inlovewithfahshion"/>
<title type="text">* La penderie de Chloé</title>
<subtitle type="html">Parlons peu, parlons bien, parlons mode.</subtitle>
<link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://www.lapenderiedechloe.com/feeds/posts/default"/>
<link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/990363500266599125/posts/default"/>
<link rel="alternate" type="text/html" href="http://www.lapenderiedechloe.com/"/>
<link rel="hub" href="http://pubsubhubbub.appspot.com/"/>
<link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/990363500266599125/posts/default?start-index=26&max-results=2 5"/>
<author>
<name>My name is Chloé</name>
<uri>http://www.blogger.com/profile/08875444913201035509</uri>
<email>[email protected]</email>
</author>
<generator version="7.00" uri="http://www.blogger.com">Blogger</generator>
<openSearch:totalResults>182</openSearch:totalResults>
<openSearch:startIndex>1</openSearch:startIndex>
<openSearch:itemsPerPage>25</openSearch:itemsPerPage>
<entry>
<id>tag:blogger.com,1999:blog-990363500266599125.post-1674992855419497573</id>
<published>2011-10-20T18:21:00.001+02:00</published>
<updated>2011-10-20T18:22:24.342+02:00</updated>
<category scheme="http://www.blogger.com/atom/ns#" term="Bournemouth"/>
<category scheme="http://www.blogger.com/atom/ns#" term="Look du jour bonjour"/>
<category scheme="http://www.blogger.com/atom/ns#" term="Aphrodisiak Leather"/>
</entry>
</feed>
trace (myXm)
I could trace myXm but it look like it is impossible to access to sub node
like trace (myXm.entry)you can use a double dot ( .. ) to jump anywhere in your xml. for example,
myXm..link[4]
should reference <link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/990363500266599125/posts/default?start-in dex=26&max-results=25"/> -
Create RSS feed from HTML DB?
I've been using a streaming RSS feed extension in Firefox for several months now and get feeds from all over including asktom.oracle.com and http://www.oracle.com/technology/products/database/htmldb/index.html. Very cool.
Recently I've installed HTML DB and have begun creating some basic reports - nothing very dramatic as I'm just learning. Now I'd like to begin sending out RSS feeds from my HTML DB application to my RSS extension in my Firefox browser but can't find an easy way to do it.
I see several posts of others wishing to do the opposite (read RSS feeds into their HTML DB application) but nothing that shows how to create a feed from HTML DB.
I looked at Tom's description of his method at http://asktom.oracle.com/~sdillon/rss.html but this seems very cumbersome to me - is there an easier way?
I would think that there should be a "create RSS" feed button somewhere in the HTML DB interface when I'm defining the page's attributes.
Thanks in advance for any advice/suggestions.Actually, Tom's method is not as hard as it looks.
You can really just copy it all into your own procedure and replace the inner query. -
All,
We have set up an RSS Feed for Oracle HTML DB News - which mirrors our News section on our OTN Home Page: http://htmldb.oracle.com/otn
Here is the link:
http://www.oracle.com/technology/products/database/htmldb/news/htmldb.rss.xml
We'll be posting details about how to subscribe to the HTML DB Newsletter in the next few days as well.
Thanks,
- Scott -Robert,
I suspect your Database Access Descriptor on XE is not /pls/xe, but it probably is 'htmldb'. Same for probably the port (unless you specified port 80 at installation/configuration time). So try:
http://localhost:8080/htmldb/hr.hot.rss
Joel -
An RSS feed with future dates is not recognized
I'm using a jquery function to load an RSS feed with Ajax: Chrome can see both past and future RSS entries but Firefox doesn't show entries with a date in the future: is there something else I should do (I'd like to avoid writing an RSS feed and an html page with the same data that I would have to later update)?
Do you see the same behavior if you load the feed directly? In Firefox, you can use
Bookmarks > Subscribe to this page...
when the page contains a <link> tag recognized as a feed.
In that case, you might need to bypass Firefox's transformation and parse your XML using your own code. -
How to Generate an iTunes U RSS Feed (to play on Website)
I'd liked to be able to play iTunes U podcasts on my college's homepage by parsing an RSS feed containing a podcast title, description, and a media enclosure (either .mp3 or .m4a). I'd use an RSS audio player to play the file on our page. We just migrated to the iTunes U Public site manager and I'm not finding any documentation online on how to accomplish this. Is this still possible (it was possible with the private version of iTunes U or even just iTunes podcasts in general). I noted below how I used to do it below. I've tried using the same work around with Public site manager without any success. We link to our iTunes U site in iTunes, but there are some instances when we'd like to be able to play these files outside of the iTunes application. I see how you can format your RSS feed to feed podcasts into iTunes U, but I'm not finding any documentation or examples that show how to pull iTunes U content from Public site manager.
Appreciate any suggestions.
Thanks,
Bittersweet
To get the RSS feed for a tab in iTunes U (for subscribing outside of
iTunes):
1) Navigate in iTunes U to the "Course" containing your podcast.
2) Click on the tab for which you want to get the feed.
3) Right-click on the "Subscribe" button and "Copy iTunes Store URL".
4) Paste the link into a text editor to verify it matches this pattern:
http://deimos.apple.com/WebObjects/Core.woa/Feed/mycollege.edu.1303285046.013932 85954
* Note: If you right-click on the "tab" of the feed instead of the
"Subscribe" button, you get a link like this:
http://deimos.apple.com/WebObjects/Core.woa/BrowsePrivately/mycollege.edu.
1303285046.01393285954
* That link only works inside of iTunes. To make it match the link
format above, change the "/BrowsePrivately/" to "/Feed/" as such:
http://deimos.apple.com/WebObjects/Core.woa/Feed/mycollege.edu.
1303285046.01393285954Hi Alan,
Sorry for the tardiness of my reply.
In principle, a backup app much as you outline could be made. It would backup enough of a private site to allow you to restore it in a genuinely substantive way. An outline of how you would approach this would be as follows:
1. You would download full site XML. Apple has a web service API for that. This gives a sort of snapshot of the structure of your site.
2. You would traverse your site XML and download a copy of each content item in your private site. A small twist in this is that you would have to pick up extra things (course/album artwork, for example). There is no Apple API for this, but it's possible to do this other ways.
Unfortunately, I the process of creating such an app would be rough. Maybe a year ago or so, I worked on some code that would allow a person to backup a specific course/album page within a site. And I nearly finished that app, but got distracted with other stuff. If there were enough interest, I could revive that work. Unfortunately, it would have to be Mac-only, I'm afraid. I could probably tackle it in WIndows, but my OS X/iOS coding chops are a LOT stronger than they are for Windows. -
Authenticated RSS feeds viewer in Sharepoint 2010
Hi All,
I need to create an RSS feed viewer in the sharepoint page from an external site (Service Now) in which authentication is needed. I tried adding the OOTB RSS viewer webpart and found out that in our environment they are not allowing authenticated
RSS feeds. So there is no point of asking for changing the authentication settings also.
Could some one let me know if there is any workaround to include the authenticated RSS feeds viewer in the sharepoint environment. Please let me know if we can achieve the same through any CEWP?
Thanks In Advance
JithinHi,
According to your post, my understanding is that you want to use RSS feeds in SharePoint 2010.
Please check as the links below:
http://norpoint.wordpress.com/2012/05/14/the-rss-webpart-does-not-support-authenticated-feeds/
http://pravahaminfo.blogspot.in/2011/04/implement-rss-feeds-in-sharepoint.html
We can also try to use Content Query Web Part to achieve it.
Creating better RSS feeds with SharePoint 2010 Content Query Web Part
http://blog.mastykarz.nl/creating-rss-feeds-sharepoint-2010-content-query-web-part/
Best Regards
Dennis Guo
TechNet Community Support -
Torss - downloads selected torrents from RSS feeds
I often have a problem with various private torrent trackers that by the time I add to torrent to my client it has already been active for a long time and I struggle to maintain a good ratio. As such I wanted something which could scrape the tracker's RSS feed, find torrents that match various patterns and download the torrent files to a folder for my torrent client to pick up.
So I wrote torss. It's quite simple, but it does what I need it to do. The user defines some rules, decides which "getter" to use (each RSS feed has its own getter) and runs torss with those settings (likely from cron).
Help:
$ torss -h
Usage: /usr/bin/torss -g getter [OPTIONS]...
torss is parser of RSS feeds which downloads files referenced in the RSS if the
title of the entry matches given rules.
-g, --getter getter script to use
-r, --rules rules file to use
-d, --destination destination path to save torrents to
-i, --history history file to use
-h, --help help
The rules file must contain an array named rules containing at least one entry.
These entries should be regular expressions (for grep -Ei) for torrent titles
to be downloaded. See /etc/torss/rules.sample
The getter script will be looked for in ~/.config/torss/getters/, then
/etc/torss/getters/ and finally as a file referenced from the CWD. This means
you can pass either simply the filename or the absolute/relative path.
The destination path will usually be a folder where your torrent client
automatically picks up torrent files.
The history file is used to ensure the same torrent isn't downloaded multiple
times, as such it should, for normal use, be left as the default value.
Example Use:
~/.config/torss/rules:
rules[0]="foobar S01E[0-9]{2}(.+)?720(.+)?x264"
Those rules match what's in a demo getter script that's included in torss.
$ torss -g demo
Downloading 'Foobar S01E02 720p x264-Pirate' to /home/sid
Downloading 'Foobar S01E01 720p x264-Pirate' to /home/sid
There is also a history file to avoid downloading the same torrents a second time.
I've created the following PKGBUILD, but not yet put it in the AUR as I'd like some feedback first.
PKGBUILD:
# Maintainer: Sid Karunaratne <sakaru at gmail dot com>
pkgname=torss
pkgver=0.2.3
pkgrel=1
pkgdesc="scrapes RSS feeds to find torrents that match user defined rules, then downloads them"
license=('LGPL2')
arch=('any')
depends=('xmlstarlet')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/sakaru/${pkgname}/tarball/${pkgver})
md5sums=('992f825a649b83e592c31c43eb256c53')
backup=('etc/torss/getters/hd-torrents.org' 'etc/torss/getters/thebox.bz' 'etc/torss/getters/thepiratebay.org')
install=install
build() {
# We need to rename githubs folder as its name isn't easy to predict
cd $srcdir
folder=$(tar -tf ${pkgname}-${pkgver}.tar.gz | head -n1)
mv $folder ${pkgname}-${pkgver}
package() {
install -Dm755 ${srcdir}/${pkgname}-${pkgver}/torss $pkgdir/usr/bin/torss
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/rules.sample $pkgdir/etc/torss/rules.sample
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/getters/demo $pkgdir/etc/torss/getters/demo
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/getters/thepiratebay.org $pkgdir/etc/torss/getters/thepiratebay.org
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/getters/hd-torrents.org $pkgdir/etc/torss/getters/hd-torrents.org
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/getters/thebox.bz $pkgdir/etc/torss/getters/thebox.bz
install:
post_install() {
cat <<EOF
==> Various getter scripts have been installed to /etc/torss/getters.
==> If you intend to use the getters for private trackers you will need
==> to edit the appropriate scripts to use your credentials. Copy them to
==> ~/.config/torss/getters if you wish them to be private.
EOF
Since it's on github I know I could use git to clone the repo for the latest code, but I prefer using tags to state releases. This way things like aurcheck/yaourt/packer/etc know there has been an update.
Some private trackers (the ones I made for myself) are already included, though you'll need to edit them, setting the cookiejar values to those of your own cookies.
I would greatly appreciate feedback, this is the first non-trivial bash script I've written.Yes - and the same here all of a sudden. Very annoying indeed. I really don't want to have to have another app. just to read my RSS feeds but is that going to be the solution? I'm sure this trouble started after I'd inadvertently erased messages instead of marking them all read. And it's only with two VersionTracker feeds too, not the others I get. VT have yet to respond to my request for ideas but if the y do, I'll post here again.
-
Hi,
please check the RSS feeds on the HTML DB, as they have errors. Check out this one http://htmldb.oracle.com/pls/otn/studio.popular.rss
best regards
CarstenLook also at the Oracle HTML DB Studio Recent Additions. It gives a nice Oracle error message:
errm:ORA-01654: unable to extend index STUDIO.RSS_LOG_PK by 128 in tablespace FLOW_4217, sqlcode:-1654
Success
Herald ten Dam -
Popup menus not working on pages with RSS feed javascript
My popup menus were working OK until I added an RSS feed to
the page that
uses javascript to parse the feed. Has anyone else
experienced this? Or
found a way to parse the RSS feed and still have the popup
menus work?
ThanksOn Tue, 1 Aug 2006 17:42:28 -0500, "D Woods"
<[email protected]>
wrote:
>My popup menus were working OK until I added an RSS feed
to the page that
>uses javascript to parse the feed. Has anyone else
experienced this? Or
>found a way to parse the RSS feed and still have the
popup menus work?
Perhaps, if you post a link to the page that doesn't work,
someone can
show you how to fix it.
Gary -
Parse RSS feed -System.out
Hi,
As below i have been reading RSS feeds.
When i execute the parser.parse(url) method i get a dump of the xml bones from the feed onto System.out, which in my case is a catalina log file.
Is there any way/method that im not aware of that can prevent this going to System.out?
public void readRSSDocument() throws Exception {
//Create the parser
RssParser parser = RssParserFactory.createDefault();
//Parse our url
Rss rss = parser.parse(
new URL("http://rss.cnn.com/rss/cnn_world.rss"));
}output:
<rss>
<channel>
<title>
</title>
<link>
</link>
<description>
</description>
<language>
</language>
<copyright>
</copyright>
<pubDate>
</pubDate>
<ttl>
</ttl>
<image>
<title>
</title>
<link>
</link>
<url>
</url>
<width>
</width>
<height>
</height>
<description>
</description>
</image>
<atom10:link>
</atom10:link>
<atom10:link>
</atom10:link>
<item>
<title>
</title>
<guid>
</guid>
<link>
</link>
<description>
</description>
<pubDate>
</pubDate>
<feedburner:origLink>
</feedburner:origLink>
</item>
<item>
<title>
</title>
<guid>
</guid>
<link>
</link>
<description>
</description>
<pubDate>
..I am presuming that you picked up the code from [this tutorial|http://java.sun.com/developer/technicalArticles/javaserverpages/rss_utilities/]
Looks like the library was compiled with System.out.println() statements in it.
There is always the handy little method "System.setOut()" to redirect it.
Alternatively, decompile the code, delete/comment the System.out.println statements and then recompile it.
Its not that hard. Here's the offending class:
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: DocumentHandler.java
package com.sun.cnpi.rss.handlers;
import com.sun.cnpi.rss.elements.Element;
import com.sun.cnpi.rss.elements.Rss;
import java.io.PrintStream;
import java.util.*;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
// Referenced classes of package com.sun.cnpi.rss.handlers:
// NullElementHandler, ElementHandler, HandlerException
public class DocumentHandler extends DefaultHandler
public DocumentHandler()
handlers = new HashMap();
handlerStack = new Stack();
parentStack = new Stack();
rss = new Rss("rss");
handlers.put(null, new NullElementHandler());
parentStack.add(rss);
public void registerHandler(String key, ElementHandler handler)
handlers.put(key.toLowerCase(), handler);
public void addToParentStack(Element parent)
parentStack.add(parent);
public Element popFromParentStack()
return (Element)parentStack.pop();
public Element peekParentStack()
return (Element)parentStack.peek();
public void startElement(String uri, String localName, String qName, Attributes attributes)
throws SAXException
//System.out.println("<" + qName + ">");
try
ElementHandler currentHandler = (ElementHandler)handlers.get(qName.toLowerCase());
handlerStack.add(currentHandler);
if(currentHandler != null)
Element parent = (Element)parentStack.peek();
currentHandler.startElement(this, parent, uri, localName, qName, attributes);
catch(HandlerException e)
e.printStackTrace();
super.startElement(uri, localName, qName, attributes);
public void characters(char ch[], int start, int length)
throws SAXException
StringBuffer buffer = new StringBuffer();
Element element = (Element)parentStack.peek();
if(element.getText() != null)
buffer.append(element.getText());
buffer.append(ch, start, length);
element.setText(buffer.toString());
super.characters(ch, start, length);
public void endElement(String uri, String localName, String qName)
throws SAXException
//System.out.println("</" + qName + ">");
if(!handlerStack.isEmpty())
try
ElementHandler currentHandler = (ElementHandler)handlerStack.pop();
if(currentHandler != null)
Element parent = (Element)parentStack.peek();
currentHandler.endElement(this, parent, uri, localName, qName);
catch(HandlerException e)
e.printStackTrace();
super.endElement(uri, localName, qName);
public Rss getRss()
return rss;
private Map handlers;
private Stack handlerStack;
private Stack parentStack;
private Rss rss;
} -
Hello everyone,
Is there any j2ee RSS parsing Utility for reading Blogger feeds? The one I could find in the site
http://java.sun.com/developer/technicalArticles/javaserverpages/rss_utilities/
is not parsing all the blogger feed elements. The tld has just a few element tags such as title, url, buildDate. I want to parse all the elements available in blogger feeds. The list of available rss feed elements for blogger is here:
http://help.blogger.com/bin/answer.py?hl=en&answer=47270
Thanksyou can use a double dot ( .. ) to jump anywhere in your xml. for example,
myXm..link[4]
should reference <link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/990363500266599125/posts/default?start-in dex=26&max-results=25"/> -
Hi,
I'm working on the example on Rss Feed which needs to integrated to our website.Hence below link i'm using for my reference purpose.
http://www.vogella.com/articles/RSSFeed/article.html
When i run the program the below exception is displayed.
Please do the needful.Thanks in advance
Exception in thread "main" java.lang.RuntimeException: java.net.ConnectException: Connection timed out: connect
at de.vogella.rss.RSSFeedParser.read(RSSFeedParser.java:146)
at de.vogella.rss.RSSFeedParser.readFeed(RSSFeedParser.java:61)
at de.vogella.rss.ReadTest.main(ReadTest.java:13)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at de.vogella.rss.RSSFeedParser.read(RSSFeedParser.java:144)
... 2 moreHi,
I'm working on the example on Rss Feed which needs to integrated to our website.Hence below link i'm using for my reference purpose.
http://www.vogella.com/articles/RSSFeed/article.html
When i run the program the below exception is displayed.
Please do the needful.Thanks in advance
Exception in thread "main" java.lang.RuntimeException: java.net.ConnectException: Connection timed out: connect
at de.vogella.rss.RSSFeedParser.read(RSSFeedParser.java:146)
at de.vogella.rss.RSSFeedParser.readFeed(RSSFeedParser.java:61)
at de.vogella.rss.ReadTest.main(ReadTest.java:13)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at de.vogella.rss.RSSFeedParser.read(RSSFeedParser.java:144)
... 2 more -
HAVi Widget to display RSS feeds using Nanoxml parser
I have got an assignment of developing a HAVi widget to display RSS feeds using the NanoXML parser. I am a beginner in JAVA tv concepts and is stuck with this problem on how to start!
Can please someone help?Havi widgets are lightweight components. You could start by creating a Havi widget extending HComponent and overriding paint method. For the initial urpose, try using some dummy text to fill in your widget. You can later experimenting with the XML parser and query it to dislay the actual text you would want to (remember to get rid o the dummy text).
Maybe you are looking for
-
How can I pass data from a form guide to another form in a business process
How do we pass data from a form guide to another form(not necessarily a guide) without having to open the form. For example we have a small form guide to capture the contract id so we can then get data from contracts table to present to the user in a
-
I need to use a JPanel as a JButton
We have a requirement here to display a panel full of various text fields and colors, but have it act like a Button. Focus handling, click handling, etc... Anyone know of a JButton class that lets you use a JPanel as it's content instead of just a te
-
Hi gurus, i have a requirement of adding a delivery document number in FBL3N.please suggest me is it possible , if so please can you send me the details on that. Thanks and regards, Rajeshwar
-
MapPoint Control 11 in Labview Container = Control could not be loaded
I am working with Labview 6.1 to create an application using a "Microsoft MapPoint Control 11.0" ActiveX component. When I first create a container for it, I can insert the component and it will load and operate correctly. However, after closing the
-
With my Logitech Surround Sound Speakers Z506 I am listening to music with itunes and i have 5 speakers total with a subwoofer, the configuration is two front, one center, two rear, and a subwoofer. The front , center and subwoofer are fine but the r