--- a/xmpp.js Wed Feb 03 21:02:33 2010 +0000
+++ b/xmpp.js Thu Feb 04 01:08:58 2010 +0000
@@ -377,6 +377,10 @@
if(typeof(this.children[i]) == "string")
buf.push(this.children[i]);
return buf.join("");
+ },
+
+ getAttribute: function (name) {
+ return this.attr[name] || null;
}
}