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

			for (i = aElements.length - 1; i >= 0; i -= 1) {
				oElement = aElements[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 !== "AnalyticalColumn"
							&& 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);
					}
				}
			}
		}

		convertElements(oDocument.getElementsByTagNameNS("sap.ui.table", "AnalyticalTable"));
		convertElements(oDocument.getElementsByTagNameNS("sap.ui.table", "Table"));
		convertElements(oDocument.getElementsByTagNameNS("sap.ui.table", "TreeTable"));
	}
Converts the sap.ui.table.(Table|TreeTable) 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).

@param {Document} oDocument The view as XML document