http://example.com/sitemap02.xml http://example.com/sitemap03.xml http://example.com/ http://example.com/about/ XML; try { $parser = new SitemapParser(); $parser->parse('http://example.com/sitemap.xml', $body); foreach ($parser->getSitemaps() as $url => $tags) { echo 'Sitemap: ' . $url . '
'; } foreach ($parser->getURLs() as $url => $tags) { echo $url . '
'; } } catch (SitemapParserException $e) { echo $e->getMessage(); }