Skip to Content
Aug 16, 2018 at 01:49 AM

How to bind XML model data to combo box in XML view - Sap ui5


Hi All,

I am getting response in xml format for soap web services . Response structure as fallow below

I want to bind "Col01" value to combobox in xml view. my xml view code as below

<ComboBox width="310px" placeholder="{i18n>OUPlaceHolder}" items="{}">
<core:Item key="{Col01}" text="{}"/>


Could any one help me here how to bind the xml data to combobox in sap ui5.

Note: I have created xml model and xml data has been set to xml model. below is the fallowing code

var oModel = new sap.ui.model.xml.XMLModel(response);

this.getView().setModel(oModel, "OUMapping");