↧
Answer by gion_13 for PHP: How to detect/parse all TAGS in rss/feed XML?
You can access each node recursively and you can choose from which one to get your data by checking if the tag name matches your desired one : $indent = 0; $tab = 4; function indent($indent){ $r = "";...
View ArticlePHP: How to detect/parse all TAGS in rss/feed XML?
I'm testing rss feed reader, from a sample. It uses: $xmlDoc = new DOMDocument(); $xmlDoc->load($url); $items = $xmlDoc->getElementsByTagName('item'); for ($i=0; $i < $items->length; $i++)...
View Article