# Class: XML

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

## ol/format/XML~XML

Generic format for reading non-feature XML data

### Subclasses

- WMSCapabilities
- WMTSCapabilities

### Methods

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

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.