Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-19-2011, 03:13 PM   #1 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 18
teslakiiing is on a distinguished road
Default Parsing rss.php

Hi!
I'm building an rss-reader for a school project and it works fine... when the feed is a rss.xml. However my teacher created an rss.php feed which I can't parse to display it. Does anyone know how to fix this?
teslakiiing is offline   Reply With Quote
Old 01-19-2011, 06:15 PM   #2 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 79
Spears47 is on a distinguished road
Default

Quote:
Originally Posted by teslakiiing View Post
Hi!
I'm building an rss-reader for a school project and it works fine... when the feed is a rss.xml. However my teacher created an rss.php feed which I can't parse to display it. Does anyone know how to fix this?
Hey tesla, do you know how the rss.php feed is set up?

try this link iPhone SDK Tutorial: Build a Simple RSS reader for the iPhone: Apple News, Tips and Reviews and in the implementation file change the URL of the rss change it to .php
Spears47 is offline   Reply With Quote
Old 01-19-2011, 06:54 PM   #3 (permalink)
Indie Developer
 
iSDK's Avatar
 
Join Date: Jul 2010
Posts: 1,346
iSDK is on a distinguished road
Send a message via AIM to iSDK
Default

An XML Parser is used for parsing XML files not PHP files.

Quote:
Originally Posted by Spears47 View Post
Hey tesla, do you know how the rss.php feed is set up?

try this link iPhone SDK Tutorial: Build a Simple RSS reader for the iPhone: Apple News, Tips and Reviews and in the implementation file change the URL of the rss change it to .php
iSDK is offline   Reply With Quote
Old 01-19-2011, 06:56 PM   #4 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 79
Spears47 is on a distinguished road
Default

Quote:
Originally Posted by iSDK View Post
An XML Parser is used for parsing XML files not PHP files.
iSDK you can create a XML RSS feed from a php, i believe thats what he is talking about
Spears47 is offline   Reply With Quote
Old 01-21-2011, 03:00 PM   #5 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 18
teslakiiing is on a distinguished road
Default

Quote:
Originally Posted by Spears47 View Post
Hey tesla, do you know how the rss.php feed is set up?

try this link iPhone SDK Tutorial: Build a Simple RSS reader for the iPhone: Apple News, Tips and Reviews and in the implementation file change the URL of the rss change it to .php
I'm really new to programming and i have used alot of the code in that tutorial. but for the php part i'm clueless. Everything i can find is how to parse an xml-file with php...
the feed is at Canceled classes
It is a feed for all the canceled classes at my school.
teslakiiing is offline   Reply With Quote
Old 01-21-2011, 03:37 PM   #6 (permalink)
Registered Member
 
Join Date: Oct 2009
Location: Amsterdam, The Netherlands
Posts: 782
TUX2K is on a distinguished road
Default

The feed at Canceled classes isn't RSS but ATOM.
Which will need a different parser.
__________________
If my answer helped you, you might want to help me.
Make a donation via PayPal.
TUX2K is offline   Reply With Quote
Old 01-21-2011, 05:17 PM   #7 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 18
teslakiiing is on a distinguished road
Default

Quote:
Originally Posted by TUX2K View Post
The feed at Canceled classes isn't RSS but ATOM.
Which will need a different parser.
I think I got it working by reading this https://github.com/mwaterfall/MWFeedParser
But I cant test it until a class i actually canceled because its empty when there is no canceled class. Does anybody know of a atom feed i can use to test it?
teslakiiing is offline   Reply With Quote
Old 01-21-2011, 05:55 PM   #8 (permalink)
Indie Developer
 
iSDK's Avatar
 
Join Date: Jul 2010
Posts: 1,346
iSDK is on a distinguished road
Send a message via AIM to iSDK
Default

Here: http://sdk4you.com/?feed=atom
and

http://maxkdevelopment.co.uk/?feed=atom

Quote:
Originally Posted by teslakiiing View Post
I think I got it working by reading this https://github.com/mwaterfall/MWFeedParser
But I cant test it until a class i actually canceled because its empty when there is no canceled class. Does anybody know of a atom feed i can use to test it?
iSDK is offline   Reply With Quote
Old 01-25-2011, 04:34 AM   #9 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 18
teslakiiing is on a distinguished road
Default

Quote:
Originally Posted by iSDK View Post
Thanks for the help guys! I got it working and now it works with the canceled classes feed. But it uses like %2C instead of "," in the feed itself and I wonder if there is a way to convert these combinations to what it actually means?
teslakiiing is offline   Reply With Quote
Reply

Bookmarks

Tags
php, rss

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 356
11 members and 345 guests
7twenty7, dre, iAppDeveloper, jeroenkeij, Mah6447, Morrisone, mottdog, sacha1996, Sami Gh, stanny, toon4413
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:41 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0