code: function(geometry) {
              var gml = this.createElementNS(this.gmlns, "gml:MultiPolygon");
              var polys = geometry.components;
              var polyMember, polyGeom;
              for(var i=0; i<polys.length; ++i) {
                  polyMember = this.createElementNS(this.gmlns,
                                                    "gml:polygonMember");
                  polyGeom = this.buildGeometry.polygon.apply(this,
                                                                  [polys[i]]);
                  polyMember.appendChild(polyGeom);
                  gml.appendChild(polyMember);
              }
              return gml;
  
          }
docs: Method: buildGeometry.multipolygon
  Given an OpenLayers multipolygon geometry, create a GML multipolygon.
  
  Parameters:
  geometry - {<OpenLayers.Geometry.MultiPolygon>} A multipolygon
  geometry.
  
  Returns:
  {DOMElement} A GML multipolygon node.