(function () { 
   YAHOO.namespace('lb'); 
   
   YAHOO.lb.xml = {
      xml: false,
      init: function (xml) { 
         this.xml = xml;
      },   
      getTextNodes: function (node) { 
         YAHOO.log(node);
         var textNodes = new Array(); 
         for (var i = 0; i < node.childNodes.length; i++)  { 
            // Check for text node
            if (node.childNodes[i].hasChildNodes() && 
            			(node.childNodes[i].firstChild.nodeType == 3 ||
            			 node.childNodes[i].firstChild.nodeType == 4) ) { 
               textNodes[node.childNodes[i].nodeName] = node.childNodes[i].firstChild.nodeValue; 
            }
         } 
         return textNodes;
      } 
   }
   
}()); 
