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 above, the core namespace is defined in the first line. Of course you can define any name. To keep the tag names shorter, for example, you can also use "c" instead of "core".

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:
<core:View controllerName="sap.hcm.Address" xmlns="sap.ui.commons" xmlns:core="sap.ui.core" xmlns:layout="sap.ui.commons.layout">