src/formats/kml/util/KmlNodeTransformers.js
function getTextOfNode(node) {
        var result;
        if (node != null && node.childNodes[0]) {
            result = node.childNodes[0].nodeValue;
        } else if (node != null) {
            result = "";
        }
        return result;
    }
function getTextOfNode(node) {
        var result;
        if (node != null && node.childNodes[0]) {
            result = node.childNodes[0].nodeValue;
        } else if (node != null) {
            result = "";
        }
        return result;
    }
function getTextOfNode ( node ) { var result ; if ( node != null && node . childNodes [ 0 ] ) { result = node . childNodes [ 0 ] . nodeValue ; } else if ( node != null ) { result = "" ; } return result ; }
This function retrieves the current value for node.
@param node {Node} Node for which we want to retrieve the value.
@returns {String} Text value of the node.
This function retrieves the current value for node .