8 var Document = function(xml) {
9 var $document = $(xml);
12 Object.defineProperty(this, 'root', {get: function() { return new ElementNode($document[0])}});
16 var ElementNode = function(nativeNode) {
17 var myNode = nativeNode,
18 $myNode = $(nativeNode);
21 this.getTagName = function() {
22 return myNode.tagName.toLowerCase();
27 fromXML: function(xml) {
28 return new Document(xml);