Created
September 19, 2010 22:36
-
-
Save tanepiper/e5d6671a4d06e56810ab 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
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