[wp-hackers] Filter Hooks for Enclosures
Owen Winkler
ringmaster at midnightcircus.com
Mon Feb 13 17:21:17 GMT 2006
Jeff Minard wrote:
> Owen Winkler wrote:
>> $xml = ob_get_clean();
>> $feed = new WPXmlDoc($xml);
>
> There's a nightmare of a function ;)
I was hoping nobody would notice that. :)
Actually, that's where the libraries I was suggesting come into play.
There are a couple that will parse XML down into an array or a set of
manageable PHP objects. These can then be modified in code (rather than
manipulating strings and inserting doaction()s between every code line)
and output with a single $feed->output();
That's the advantage.
Otherwise, how can we satisfy every need to modify these feeds, since
they're not in editable space (wp-content)?
Owen
More information about the wp-hackers
mailing list