lib/xmlutil.js
function(node) {
    var sibling = node.firstChild;
    while (sibling && !sibling.data) {
      sibling = sibling.nextSibling;
    }

    return sibling.data ? sibling.data : null;
  }
function(node) {
    var sibling = node.firstChild;
    while (sibling && !sibling.data) {
      sibling = sibling.nextSibling;
    }

    return sibling.data ? sibling.data : null;
  }
function ( node ) { var sibling = node . firstChild ; while ( sibling && ! sibling . data ) { sibling = sibling . nextSibling ; } return sibling . data ? sibling . data : null ; }
Given an xmldom node this function returns any text data contained within.
@static
@memberOf XmlUtil
@param  {object} node  An xmldom node from which the data should be extracted.
@return {string}       Any data found within the element or null if none is found.
Given an xmldom node this function returns any text data contained within .