# Class: WMSCapabilities

This documentation is for OpenLayers v10.9.0. The latest is v.

## ol/format/WMSCapabilities~WMSCapabilities

    import WMSCapabilities from 'ol/format/WMSCapabilities.js';

Format for reading WMS capabilities data

#### new WMSCapabilities()

format/WMSCapabilities.js, line 73

### Extends

- XML

### Methods

#### read(source){Object | null} inherited

format/XML.js, line 21

  Read the source document.

  Name | Type | Description
  --- | --- | ---
  `source` | Document | Element | string | The XML source.

  ##### Returns:

  An object representing the source.