+ },
+
+ loadXML: function(xml) {
+ var $document = $(parseXML(xml));
+
+ var doc = this;
+ Object.defineProperty(this, 'root', {get: function() {
+ return doc.createElementNode($document[0]);
+ }, configurable: true});
+ Object.defineProperty(this, 'dom', {get: function() {
+ return $document[0];
+ }, configurable: true});
+
+ this.trigger('contentSet');
+ },
+
+ toXML: function() {
+ return this.root.toXML();