Skip to content

Instantly share code, notes, and snippets.

@ethangardner
Created January 11, 2011 23:03
Show Gist options
  • Save ethangardner/775347 to your computer and use it in GitHub Desktop.
Save ethangardner/775347 to your computer and use it in GitHub Desktop.
MooTools 1.3 XML parsing with Slick
//XHR to retrieve an atom feed and parse the result
//with MooTools Slick selector engine
new Request({
url: '/index.php?format=feed&type=atom',
data : 'xml',
method: 'get',
onComplete: function(responseText, responseXML) {
console.log(Slick.search(responseXML, 'entry > title'));
}
}).send();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment