code: function(geometry) {
          var coordinatesNode = this.createElementNS(this.kmlns, "coordinates");
          
          var path;
          var points = geometry.components;
          if(points) {
              // LineString or LinearRing
              var point;
              var numPoints = points.length;
              var parts = new Array(numPoints);
              for(var i=0; i<numPoints; ++i) {
                  point = points[i];
                  parts[i] = this.buildCoordinates(point);
              }
              path = parts.join(" ");
          } else {
              // Point
              path = this.buildCoordinates(geometry);
          }
          
          var txtNode = this.createTextNode(path);
          coordinatesNode.appendChild(txtNode);
          
          return coordinatesNode;
      }
docs: Method: buildCoordinatesNode
  Builds and returns the KML coordinates node with the given geometry
  <coordinates>...</coordinates>
  
  Parameters:
  geometry - {<OpenLayers.Geometry>}
  
  Returns:
  {DOMElement}