Parsing RSS with namespaces

From: Date: Thu, 01 May 2008 13:38:06 +0000
Subject: Parsing RSS with namespaces
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28852@lists.php.net to get a copy of this message
Hi everyone, I'm trying to parse some RSS. I use the following code: http://paste.ubuntu.com/9179/ When I run it, I get the following result: http://test.thingmajig.org/ffffound/ And the feed I'm using is this one: http://ffffound.com/home/msikma/found/feed My question: where did all the tags with namespaces go? There are tags like <media:content> and <ffffound:source>, but they seem to be ignored. I've done some basic checking and found that the parser does seem to be aware that these tags exist, but it doesn't seem to use them. Something like that. I also noticed that the parent class, XML_Parser, uses xml_parser_create() instead of xml_parser_create_ns(), but overriding this function and changing it didn't seem to have any effect. I'm at a loss here. Anyone know what I'm doing wrong? It's probably something ridiculously simple! Thanks! Michiel

« previous php.pear.general (#28852) next »