473,385 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

what to pick for RSS/Atom parsing

Which XML parser would be best for building an on-line RSS/Atom
reader? [AJAX interface, PHP processing]

I know for starters there's PHP's DOMDocument and SimpleXML, then
there's XMLReader and PEAR's XML_Feed_Parser, and then there is also
some standalone stuff like Zend_Feed of the Zend Framework or Magpie
RSS. So there's really a lot of solutions and some help on deciding
which one to pick would be really appreciated.

Ideally, the parsing tool should be easy to use - to get going quickly
with a very simple RSS reader - but also comprehensive and logical -
so it won't turn into a disaster as my feed reader gets sophisticated
(i.e. reads and analyzes all kinds of fields/properties; downloads a
gazzilion feeds at a time, etc.)

Thanks!
Nov 2 '08 #1
3 3576
For the most part. I like PHP 5's SimpleXML parser, see my post here
http://groups.google.com/group/comp....ac037975c822c3

as you can see I'm having difficulties with it getting a value from a
particular type of overstuffed tag, and I know that is possible with
SimpleXML, just don't know how yet, but if you'll be parsing straight
laced XML, SimpleXML should do the trick

On Nov 2, 4:48 pm, Aleksander <Aleksander.W...@gmail.comwrote:
Which XML parser would be best for building an on-line RSS/Atom
reader? [AJAX interface, PHP processing]

I know for starters there's PHP's DOMDocument and SimpleXML, then
there's XMLReader and PEAR's XML_Feed_Parser, and then there is also
some standalone stuff like Zend_Feed of the Zend Framework or Magpie
RSS. So there's really a lot of solutions and some help on deciding
which one to pick would be really appreciated.

Ideally, the parsing tool should be easy to use - to get going quickly
with a very simple RSS reader - but also comprehensive and logical -
so it won't turn into a disaster as my feed reader gets sophisticated
(i.e. reads and analyzes all kinds of fields/properties; downloads a
gazzilion feeds at a time, etc.)

Thanks!
Nov 3 '08 #2
On 3 Lis, 02:33, "duane.lor...@gmail.com" <duane.lor...@gmail.com>
wrote:
For the most part. I like PHP 5's SimpleXML parser, see my post herehttp://groups.google.com/group/comp.lang.php/browse_thread/thread/cca...

as you can see I'm having difficulties with it getting a value from a
particular type of overstuffed tag, and I know that is possible with
SimpleXML, just don't know how yet, but if you'll be parsing straight
laced XML, SimpleXML should do the trick

On Nov 2, 4:48 pm, Aleksander <Aleksander.W...@gmail.comwrote:
Which XML parser would be best for building an on-line RSS/Atom
reader? [AJAX interface, PHP processing]
I know for starters there's PHP's DOMDocument and SimpleXML, then
there's XMLReader and PEAR's XML_Feed_Parser, and then there is also
some standalone stuff like Zend_Feed of the Zend Framework or Magpie
RSS. *So there's really a lot of solutions and some help on deciding
which one to pick would be really appreciated.
Ideally, the parsing tool should be easy to use - to get going quickly
with a very simple RSS reader - but also comprehensive and logical -
so it won't turn into a disaster as my feed reader gets sophisticated
(i.e. reads and analyzes all kinds of fields/properties; downloads a
gazzilion feeds at a time, etc.)
Thanks!

Duane, thanks for your reply.

Unfortunately I need to be prepared to parse any feed in the world as
I intend to use my RSS reader rather extensively. Actually this is
the reason I'm writing it in the first place - current RSS readers
make it pretty hard to manage a large number of feed sources, since
they present them (the sources and their posts) in a purely linear
manner - with a two-level tree view being the biggest innovation in
this domain. (Yes, that means mine will be very non-linear ;)

So while SimpleXML sounds like something really nice and simple (hint
in the name ;) but I must also be able to read any RSS or Atom feed
without wasting a lot of time to make it work. Still, maybe this is a
good starting point, and later when things get complicated I shall
switch to something more sophisticated....

If anyone has any experience with more other RSS parsers, comments are
very welcome.
Nov 3 '08 #3
On Nov 3, 7:16 am, Aleksander <Aleksander.W...@gmail.comwrote:
On 3 Lis, 02:33, "duane.lor...@gmail.com" <duane.lor...@gmail.com>
wrote:
For the most part. I like PHP 5's SimpleXML parser, see my post herehttp://groups.google.com/group/comp.lang.php/browse_thread/thread/cca...
as you can see I'm having difficulties with it getting a value from a
particular type of overstuffed tag, and I know that is possible with
SimpleXML, just don't know how yet, but if you'll be parsing straight
laced XML, SimpleXML should do the trick
On Nov 2, 4:48 pm, Aleksander <Aleksander.W...@gmail.comwrote:
Which XML parser would be best for building an on-line RSS/Atom
reader? [AJAX interface, PHP processing]
I know for starters there's PHP's DOMDocument and SimpleXML, then
there's XMLReader and PEAR's XML_Feed_Parser, and then there is also
some standalone stuff like Zend_Feed of the Zend Framework or Magpie
RSS. So there's really a lot of solutions and some help on deciding
which one to pick would be really appreciated.
Ideally, the parsing tool should be easy to use - to get going quickly
with a very simple RSS reader - but also comprehensive and logical -
so it won't turn into a disaster as my feed reader gets sophisticated
(i.e. reads and analyzes all kinds of fields/properties; downloads a
gazzilion feeds at a time, etc.)
Thanks!

Duane, thanks for your reply.

Unfortunately I need to be prepared to parse any feed in the world as
I intend to use my RSS reader rather extensively. Actually this is
the reason I'm writing it in the first place - current RSS readers
make it pretty hard to manage a large number of feed sources, since
they present them (the sources and their posts) in a purely linear
manner - with a two-level tree view being the biggest innovation in
this domain. (Yes, that means mine will be very non-linear ;)

So while SimpleXML sounds like something really nice and simple (hint
in the name ;) but I must also be able to read any RSS or Atom feed
without wasting a lot of time to make it work. Still, maybe this is a
good starting point, and later when things get complicated I shall
switch to something more sophisticated....

If anyone has any experience with more other RSS parsers, comments are
very welcome.
Greetings,
I have had a great deal of success with Magpie.
Magpie allows a loop through urls and pick out content related
headlines.
Very nice tool magpie.
$0.02 ;)
(My 2 cents)
Nov 4 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: maRIO5 | last post by:
What it means parsing? Can you give me a practical example. -- dk
22
by: Willem Ligtenberg | last post by:
I want to parse a very large (2.4 gig) XML file (bioinformatics ofcourse :)) But I have no clue how to do that. Most things I see read the entire xml file at once. That isn't going to work here...
0
by: Andy Dingley | last post by:
I'm just building my first Atom feeds (at http://gamesradar.com/rss/ps2/ should you care ) One of the requirements here is to include lots of rich media (screenshots) with each entry. There...
14
by: Arthur J. O'Dwyer | last post by:
Well, I'm trying to write that program that was requested a few weeks back, the one that could take struct definitions and create portable functions to read and write those structs. Hence the...
0
by: banjolibrarian | last post by:
I have been setting up RSS and Atom feeds for our library's podcasts. The RSS feed works fine, but when I subscribe to the Atom feed (via Bloglines), the link to the file itself defaults to...
15
by: Brady Love | last post by:
I am currently working an an app that will post and edit blogs on blogger. Right now I have it so I can recive a list of the blogs and the content of those blogs using Atomizer. This is my first...
0
by: emf | last post by:
Dearest mail manipulating macaques and perambulating python prestidigitators, I have been blessed by the grace of Google and so am working full-time on improving Mailman's web UI: ...
1
by: aplonis | last post by:
I have an XML (Atom) doc at this URL... Atom ...which displays as HTML using any one of three XSLT stylesheets, the principal one being at this URL... XSLT ...with two...
1
by: chixor1 | last post by:
I have been charged with Parsing the data from many Abstract files, and then inputing this information into a SQL Database. The file format is rather unusual and certainly not delimited in any...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.