[wp-hackers] Filter Hooks for Enclosures

Rob powzor at gmail.com
Mon Feb 13 17:57:04 GMT 2006


Owen Winkler wrote:
> 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
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
What are the best libraries for this, though? SimpleXML is fantastic but 
PHP5 only, and the PEAR XML_(Un)Serializer class has been (in my 
experience, anyway) pretty bad.

-- 
Rob Miller
http://robm.me.uk/ | http://kantian.co.uk/



More information about the wp-hackers mailing list