code: function(data, options) {
          options = options || {};
          OpenLayers.Util.applyDefaults(options, {
              output: "features"
          });
          
          if(typeof data == "string") { 
              data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);
          }
          if(data && data.nodeType == 9) {
              data = data.documentElement;
          }
          var obj = {};
          if(data) {
              this.readNode(data, obj, true);
          }
          if(obj.features && options.output === "features") {
              obj = obj.features;
          }
          return obj;
      }
docs: APIMethod: read
  Parse the response from a transaction.  Because WFS is split into
  Transaction requests (create, update, and delete) and GetFeature
  requests (read), this method handles parsing of both types of
  responses.
  
  Parameters:
  data - {String | Document} The WFST document to read
  options - {Object} Options for the reader
  
  Valid options properties:
  output - {String} either "features" or "object". The default is
  "features", which means that the method will return an array of
  features. If set to "object", an object with a "features" property
  and other properties read by the parser will be returned.
  
  Returns:
  {Array | Object} Output depending on the output option.