Tests refactoring
[fnpeditor.git] / src / wlxml / wlxml.js
index 4af5e48..bdf7527 100644 (file)
@@ -52,7 +52,11 @@ $.extend(WLXMLDocument.prototype, {
 return {
     WLXMLDocumentFromXML: function(xml) {
         return new WLXMLDocument(xml);
-    }  
+    },
+
+    WLXMLElementNodeFromXML: function(xml) {
+        return this.WLXMLDocumentFromXML(xml).root;
+    }
 };
 
 });
\ No newline at end of file