Created
January 11, 2011 22:21
-
-
Save ethangardner/775276 to your computer and use it in GitHub Desktop.
Mootools 1.2 XML sitemap parsing
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
new Request({ | |
url: '/sitemap.xml', | |
method: 'get', | |
onSuccess: function(responseText, responseXML) { | |
responseXML.getElements('url').each(function(url) { | |
alert(item.getElement('loc').get('text')); | |
}); | |
} | |
}).send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment