Yii Framework Forum: RSS/XML Parser for PHP? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

RSS/XML Parser for PHP? Rate Topic: -----

#1 User is offline   DarkNSF 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 287
  • Joined: 12-November 08
  • Location:Palm Bay, Florida

Posted 20 May 2011 - 01:52 PM

SimpleXML Parser is terrible, it's almost easier to parse the xml manually than to use their output...

I found php_rss, but version 1 (free version) doesn't work with youtube's playlist rss feed..



Can anyone recommend a parser that basically just takes RSS/XML and converts it in to an array?



Thanks! :)
0

#2 User is offline   georgebuckingham 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 62
  • Joined: 25-May 11
  • Location:London, UK

Posted 02 June 2011 - 08:27 AM

Have you had a look at xml2array()?
http://www.bin-co.co...ipts/xml2array/

There's also MagicParser, but that costs £50
http://www.magicparser.com/
[url="http://georgebuckingham.co.uk"][/url]
0

#3 User is offline   mmx 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 64
  • Joined: 20-June 11
  • Location:Virginia Beach, VA USA

Posted 06 July 2011 - 06:39 AM

Have you taken a look at SimplePie (simplepie.org)? It's a BSD licensed class. You can use it as a basis for a newsfeed module (RSS and Atom) and a syndication portlet for your own content.
0

#4 User is offline   Jaggi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 90
  • Joined: 05-September 11

Posted 14 October 2011 - 03:12 PM

Whats you're issues with simple xml, its pretty... simple. I do personally prefer to use DOM but thats because i tend to do some advance parsing with xml but have used simple xml and found it pretty self explanatory. There are lots of alternatives like xml_parser and you can use xml_parse_into_struct.
See my development site @ www.CodeTheInter.net (BETA)

Posted Image Posted Image

Quote

If you make it idiot proof, they'll build a better idiot
0

#5 User is offline   Mike Chojnacki 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 31-January 12

Posted 06 February 2012 - 05:27 AM

Well, you can print the xml to the DOM and use phpQuery I guess, but SimpleXML is indeed rather simple and I've never had any issues with it :P
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users