code: function(data, options) {
          if(typeof data == "string") {
              data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);
          }
          var root = data.documentElement;
          var version = this.getVersion(root);
          this.parser = this.getParser(version);          // Select the parser
          var obj = this.parser.read(data, options);      // Parse the data
  
          var errorProperty = this.parser.errorProperty || null;
          if (errorProperty !== null && obj[errorProperty] === undefined) {
              // an error must have happened, so parse it and report back
              var format = new OpenLayers.Format.OGCExceptionReport();
              obj.error = format.read(data);
          }
          obj.version = version;
          return obj;
      }
docs: APIMethod: read
  Read a doc and return an object representing the document.
  
  Parameters:
  data - {String | DOMElement} Data to read.
  options - {Object} Options for the reader.
  
  Returns:
  {Object} An object representing the document.