Skip to content

Instantly share code, notes, and snippets.

@aconbere
Created November 3, 2009 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aconbere/225546 to your computer and use it in GitHub Desktop.
Save aconbere/225546 to your computer and use it in GitHub Desktop.
var iq = xml('iq', {xmlns: "http:..."}, function() {
this.xml('query', {xmlns: 'http://jabber.org/protocol/disco#items', node: "root"}, function() {
for(var i = 0; i < 10; i++){
this.xml('item', {}, function() {
this.text('item-' + i);
});
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment