docs: function(data) {
          if(typeof data == "string") {
              data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);
          }
          var raw = data;
          if(data && data.nodeType == 9) {
              data = data.documentElement;
          }
          var capabilities = {};
          this.readNode(data, capabilities);
          if (capabilities.service === undefined) {
              // an exception must have occurred, so parse it
              var parser = new OpenLayers.Format.OGCExceptionReport();
              capabilities.error = parser.read(raw);
          }
          return capabilities;
      }