code: function(data, options) {
          options = OpenLayers.Util.applyDefaults(options, this.options);
          var sld = {
              namedLayers: options.namedLayersAsArray === true ? [] : {}
          };
          this.readChildNodes(data, sld);
          return sld;
      }
docs: Constructor: OpenLayers.Format.SLD.v1
  Instances of this class are not created directly.  Use the
  <OpenLayers.Format.SLD> constructor instead.
  
  Parameters:
  options - {Object} An optional object whose properties will be set on
  this instance.
   
  Method: read
  
  Parameters:
  data - {DOMElement} An SLD document element.
  options - {Object} Options for the reader.
  
  Valid options:
  namedLayersAsArray - {Boolean}  Generate a namedLayers array.  If false,
  the namedLayers property value will be an object keyed by layer name.
  Default is false.
  
  Returns:
  {Object} An object representing the SLD.