function xmlConvertGridTables(oDocument) {
		var oChildNode, aChildNodes, oColumn, oElement, i, j, aTableElements, oTemplate,
			oRowMode, oFixedRowMode;

		aTableElements = oDocument.getElementsByTagNameNS("sap.ui.table", "Table");
		for (i = aTableElements.length - 1; i >= 0; i -= 1) {
			oElement = aTableElements[i];

			if (oElement.hasAttribute("visibleRowCount")) {
				oRowMode = document.createElementNS("sap.ui.table", "rowMode");
				oElement.appendChild(oRowMode);
				oFixedRowMode = document.createElementNS("sap.ui.table.rowmodes", "Fixed");
				oFixedRowMode.setAttribute("rowCount", oElement.getAttribute("visibleRowCount"));
				oRowMode.appendChild(oFixedRowMode);
				oElement.removeAttribute("visibleRowCount");
			}

			aChildNodes = oElement.childNodes;
			for (j = aChildNodes.length - 1; j >= 0; j -= 1) {
				oChildNode = aChildNodes[j];
				if (oChildNode.nodeType === Node.ELEMENT_NODE
						&& oChildNode.localName !== "Column"
						&& oChildNode.localName !== "rowMode") {
					oColumn = document.createElementNS("sap.ui.table", "Column");
					oElement.insertBefore(oColumn, oChildNode);
					oElement.removeChild(oChildNode);
					oTemplate = document.createElementNS("sap.ui.table", "template");
					oColumn.appendChild(oTemplate);
					oTemplate.appendChild(oChildNode);
				}
			}
		}
	}
Converts the sap.ui.table.Table controls within the document. Embeds all inner controls into
a <t:Column> with <t:template> each. <t:Column> may still be used however. Do not use <rows>,
it breaks this automatic conversion (and is unnecessary anyway). Replaces the deprecated
table property "visibleRowCount" by the correct <rowMode><Fixed rowCount="..."></rowMode>,
allowing the tests to still use it.

@param {Document} oDocument The view as XML document