Show TOC

Namespaces in XML ViewsLocate this document in the navigation structure

The names of the SAPUI5 control libraries are mapped to XML namespaces.

One of the required namespaces is defined as default namespace. The control tags for this namespace do not need a prefix.

The <View> tag is required and in the example, the mvc namespace is defined in the first line. You can define any name for the namespace.

Note If controls are located in a subpackage of a control library, for example sap.ui.commons.layout.MatrixLayout, they must have their own XML namespace:
<mvc:View controllerName="sap.hcm.Address" xmlns="sap.ui.commons" xmlns:mvc="sap.ui.core.mvc" xmlns:layout="sap.ui.commons.layout">