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