Raw XML string from a GetCapabilities response.
Target WMTS layer identifier (uses first layer if omitted).
TileMatrixSet identifier (uses first available if omitted).
Tile image format (e.g. "image/png").
The resolved XYZ tile URL template, or null on failure.
Parses a WMTS GetCapabilities XML string and returns a MapLibre-compatible XYZ tile URL template.