xml.header("1.0", encoding);
xml.indentElement("Capabilities");
xml.attribute("xmlns", "http://www.opengis.net/wmts/1.0");
xml.attribute("xmlns:ows", "http://www.opengis.net/ows/1.1");
xml.attribute("xmlns:xlink", "http://www.w3.org/1999/xlink");
xml.attribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
xml.attribute("xmlns:gml", "http://www.opengis.net/gml");
xml.attribute("xsi:schemaLocation", "http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd");
xml.attribute("version", "1.0.0");
// There were some contradictions in the draft schema, haven't checked whether they've fixed those
//str.append("xsi:schemaLocation=\"http://www.opengis.net/wmts/1.0 http://geowebcache.org/schema/opengis/wmts/1.0.0/wmtsGetCapabilities_response.xsd\"\n");