title: SAPUI5: DataBinding to List
body: <p>I've got this XML list:</p>
  
  <pre><code>&lt;List id="myList"
              items="{/Items}"&gt;
              &lt;items&gt;
                  &lt;ObjectListItem title="{ID}" type="Active" press="onListItemPressed"
                              number="{ parts:[{path:'Price'},{path:'Currency'}],
                              type: 'sap.ui.model.type.Currency', formatOptions: {showMeasure: false} }"
                      numberUnit="{Currency}"&gt;
                      &lt;firstStatus&gt;
                          &lt;ObjectStatus
                              text="{path:'End',
                              formatter: '.formatter.getCountdown'}"
                              state="{path:'End', formatter:
                              '.formatter.getCountdownStatus'}" /&gt;
                      &lt;/firstStatus&gt;
                      &lt;attributes&gt;
                          &lt;ObjectAttribute text="{i18n&gt;GlobalType}: {Format}" /&gt;
                      &lt;/attributes&gt;
                  &lt;/ObjectListItem&gt;
              &lt;/items&gt;
          &lt;/List&gt;
  </code></pre>
  
  <p>At the moment i bind the data with JS:</p>
  
  <pre><code>var objectTemplate = new sap.m.ObjectListItem({
                  title : "{ID}",
                  number : "{ parts:[{path:'Price'},{path:'Currency'}], type: 'sap.ui.model.type.Currency', formatOptions: {showMeasure: false} }",
                  numberUnit :"{Currency}",
                  type : sap.m.ListType.Active,
                  press : this.onListItemPressed,
  
                  attributes : [new sap.m.ObjectAttribute({
                            text : "{i18n&gt;GlobalType}: {Format}"
                      })],
                  firstStatus : new sap.m.ObjectStatus({
                                             text : "{path:'End'}",
                                             status : "{path:'End'}" 
                  })
              });
  
  
  oList.bindAggregation("items", {
                  path : "/Items",
                  filters: [ new sap.ui.model.Filter("Type", sap.ui.model.FilterOperator.EQ, oArgs.TypeID ) ],
                  template : objectTemplate
        }); 
  </code></pre>
  
  <p>I would like to use the XML list instead of creating the list by JS. Can i use bindAggregation with an XML Template?</p>