Folks,
Check this Xml SItemap Link Extractor
[code]
include_once(‘simplehtmldom_1_9_1/simple_html_dom.php’);
//Works.
//$sitemap = ‘https://www.rocktherankings.com/post-sitemap.xml’;
//$sitemap = “https://www.rocktherankings.com/sitemap_index.xml”; //Has more xml files.
//Does not work. Shows blank page.
$sitemap = “https://bytenota.com/sitemap.xml”;
$html = new simple_html_dom();
$html->load_file($sitemap);
foreach($html->find(“loc”) as $link)
{
echo $link->innertext.”<br>”;
}
It manages to extract links of html files aswell as xml files from these 2 xml sitemaps:
**$sitemap = ‘
$sitemap = “
So far, so good.
But why it fails to extract further xml sitemap links from this following particular xml sitemap ? That is the big issue!