code: function(feature) {
          var geometry = feature.geometry;
          var geometryNode = this.buildGeometryNode(geometry);
          var geomContainer = this.createElementNS(this.featureNS,
                                                   this.featurePrefix + ":" +
                                                   this.geometryName);
          geomContainer.appendChild(geometryNode);
          var featureNode = this.createElementNS(this.gmlns,
                                                 "gml:" + this.featureName);
          var featureContainer = this.createElementNS(this.featureNS,
                                                      this.featurePrefix + ":" +
                                                      this.layerName);
          var fid = feature.fid || feature.id;
          featureContainer.setAttribute("fid", fid);
          featureContainer.appendChild(geomContainer);
          for(var attr in feature.attributes) {
              var attrText = this.createTextNode(feature.attributes[attr]); 
              var nodename = attr.substring(attr.lastIndexOf(":") + 1);
              var attrContainer = this.createElementNS(this.featureNS,
                                                       this.featurePrefix + ":" +
                                                       nodename);
              attrContainer.appendChild(attrText);
              featureContainer.appendChild(attrContainer);
          }    
          featureNode.appendChild(featureContainer);
          return featureNode;
      }
docs: Method: createFeatureXML
  Accept an OpenLayers.Feature.Vector, and build a GML node for it.
  
  Parameters:
  feature - {<OpenLayers.Feature.Vector>} The feature to be built as GML.
  
  Returns:
  {DOMElement} A node reprensting the feature in GML.