Skip to content

Instantly share code, notes, and snippets.

@tanepiper
Created September 19, 2010 22:36
Show Gist options
  • Save tanepiper/e5d6671a4d06e56810ab to your computer and use it in GitHub Desktop.
Save tanepiper/e5d6671a4d06e56810ab to your computer and use it in GitHub Desktop.
YUI({ debug: DEBUG }).use('node', function(remotePage) {
var url = 'http://example.com/foo.xml';
remotePage.fetch(url, function() {
var userIdItems = remotePage.all('Users OnlineUsers OnlineUser UserID');
userIdItems.each(function(item) {
console.log(item.get('innerHTML');
// Get an attr
console.log(item.get('someattr');
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment