-
-
Save LeffeBakedBird/4ca2f6ff5cce224cc06f9a8765947c16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$DomDocument = new DOMDocument(); | |
$DomDocument->load('sitemap.xml'); | |
$DomNodeList = $DomDocument->getElementsByTagName('loc'); | |
foreach($DomNodeList as $url) { | |
echo $url->nodeValue; | |
echo "<br/>"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment