Parsing WMTS GetCapabilities with ESRI JavaScript API
example WMTS GetCapabilities document