Skip to content

Instantly share code, notes, and snippets.

@ethangardner
Created January 11, 2011 22:21
Show Gist options
  • Save ethangardner/775276 to your computer and use it in GitHub Desktop.
Save ethangardner/775276 to your computer and use it in GitHub Desktop.
Mootools 1.2 XML sitemap parsing
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