Hybrid parser, and object, takes RSS as a string and returns a simple object.
see: rss_fetch.inc for a simpler interface with integrated caching support
Located in /util/magpie/rss_parse.inc (line 34)
Set up XML parser, parse source, and return populated RSS object..
string containing the RSS to be parsed
NOTE: Probably a good idea to leave the encoding options alone unless you know what you're doing as PHP's character set support is a little weird.
NOTE: A lot of this is unnecessary but harmless with PHP5
output the parsed RSS in this character set defaults to ISO-8859-1 as this is PHP's default.
NOTE: might be changed to UTF-8 in future versions.
return XML parser, and possibly re-encoded source
Instaniate an XML parser under PHP4
Unfortunately PHP4's support for character encodings and especially XML and character encodings sucks. As long as the documents you parse only contain characters from the ISO-8859-1 character set (a superset of ASCII, and a subset of UTF-8) you're fine. However once you step out of that comfy little world things get mad, bad, and dangerous to know.
The following code is based on SJM's work with FoF
Instantiate an XML parser under PHP5
PHP5 will do a fine job of detecting input encoding if passed an empty string as the encoding.
All hail libxml2!
Documentation generated on Fri, 1 Jun 2007 16:51:51 +0200 by phpDocumentor 1.3.2