code: function getText(node) {
      if (!node || !node.childNodes) {
          return undefined;
      }
      return node.protectedValue ? node.protectedValue.text : node.textContent;
  }
docs: Gets node inner text
  @param {Node} node - xml node
  @return {string|undefined} - node inner text or undefined, if the node is empty