php opening itunes tags an rss feed


i need opening itunes tags an rss feed controlling php. i've used simplepie before podcast feeds, nonetheless i'm certain itunes tags controlling it. there proceed simplepie there improved way?






okay i attempted rudimentary xml.



all (the formula below) seems work



$feed = simplexml_load_file('http://sbhosting.com/feed/');
$channel = $feed->channel;
$channel_itunes = $channel->children('http://www.itunes.com/dtds/podcast-1.0.dtd');
$summary = $channel_itunes->summary;
$subtitle = $channel_itunes->subtitle;
$category = $channel_itunes->category;
$owner = $channel_itunes->owner->name;


now i need itunes categories. seem represented several ways.
in box i follow xml:



<itunes:category text="technology"/>
<itunes:category text="technology">
<itunes:category text="software how-to"/>
</itunes:category>


i design means problem something this:



$category_text = $channel_itunes->category['text'];


but does seem work.



i've seen ways paint problem i unequivocally don't know get.



for example:



technology
business
education



is media thing itunes thing both?



thanks your help.
g



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members