title: SAPUI5 Using XML-File as View with "data-sap-ui-resourceroots"?
body: <p>I'm doing the SAPUI5 Walkthrough and stuck at step 4. <a href="https://sapui5.hana.ondemand.com/#docs/guide/1409791afe4747319a3b23a1e2fc7064.html" rel="nofollow">(Walkthrough Step 4)</a></p>
  
  <p>I'm working with Eclipse and don't know how to change this code-line so it works for my project and is going to find my view.</p>
  
  <pre><code>         data-sap-ui-resourceroots='{
          "sap.ui.demo.wt": "./"
       }' 
  </code></pre>
  
  <p>I need to know what to insert for "sap.ui.demo.wt" when using an Eclipse project.</p>
  
  <p>Thanks for any hints :)</p>
  
  <p>EDIT:</p>
  
  <p>Now I got a working page with a button which triggers a pop-up.</p>
  
  <p>Folder structure: </p>
  
  <pre><code>SAPUI5_Test
   - WebContent
      - controller
         -&gt; NewView.controller.js
      - view
         -&gt; NewView.view.xml
      - index.html
  </code></pre>
  
  <p>index.html:</p>
  
  <pre><code>    &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"/&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;SAPUI5 Walkthrough&lt;/title&gt;
      &lt;script
          id="sap-ui-bootstrap"
          src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js"
          data-sap-ui-theme="sap_bluecrystal"
          data-sap-ui-libs="sap.m"
          data-sap-ui-compatVersion="edge"
          data-sap-ui-preload="async"
          data-sap-ui-resourceroots='{
              "SAPUI5_Test": "./"
          }'&gt;
      &lt;/script&gt;
      &lt;script&gt;
          sap.ui.getCore().attachInit(function () {
              sap.ui.xmlview({
                  viewName: "SAPUI5_Test.view.NewView"
              }).placeAt("content");
          });
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body class="sapUiBody" id="content"&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>NewView.view.xml:</p>
  
  <pre><code>&lt;mvc:View
  controllerName="SAPUI5_Test.controller.NewView"
  xmlns="sap.m"
  xmlns:mvc="sap.ui.core.mvc"&gt;
  &lt;Button 
  text="Say hello"
  press="onShowHello"/&gt;
  &lt;/mvc:View&gt;
  </code></pre>
  
  <p>NewView.controller.js</p>
  
  <pre><code>sap.ui.controller("SAPUI5_Test.controller.NewView", {
      onShowHello : function() {
          alert("Hello SAPUI5_Controller");
      }
  });
  </code></pre>
  
  <p>So thanks for the help! And maybe this could help someone in the future :)</p>