code: function(root, options) {
          var version = this.version;
          if(!version) {
              // remember version does not correspond to the OWS version
              // it corresponds to the WMS/WFS/WCS etc. request version
              var uri = root.getAttribute("xmlns:ows");
              // the above will fail if the namespace prefix is different than
              // ows and if the namespace is declared on a different element
              if (uri && uri.substring(uri.lastIndexOf("/")+1) === "1.1") {
                  version ="1.1.0";
              } 
              if(!version) {
                  version = this.defaultVersion;
              }
          }
          return version;
      }
docs: Constructor: OpenLayers.Format.OWSCommon
  Create a new parser for OWSCommon.
  
  Parameters:
  options - {Object} An optional object whose properties will be set on
  this instance.
   
  Method: getVersion
  Returns the version to use. Subclasses can override this function
  if a different version detection is needed.
  
  Parameters:
  root - {DOMElement}
  options - {Object} Optional configuration object.
  
  Returns:
  {String} The version to use.