title: SAP UI5 - How to append HTML DOM Object to XML View
body: <p>I'm trying to append an HTML DOM Object to XML View, but it isn't showing up.</p>
  
  <p>I'm trying to hit a BAPI service which returns me an XML, which is then transformed into HTML DOM using an XSLT</p>
  
  <p>resultDocument is an documentFragment
  paneXml is the panel id</p>
  
  <pre><code>if (document.implementation &amp;&amp; document.implementation.createDocument) {
                      xsltProcessor = new XSLTProcessor();
                      xsltProcessor.importStylesheet(xsl);
                      resultDocument = xsltProcessor.transformToFragment(xml, document);
                      var viewHtml = new sap.ui.core.HTML().setDOMContent(resultDocument);
                      this.getView().byId('panelXml').placeAt('viewHtml');
               }
  </code></pre>
  
  <p>XML View <code>&lt;Panel id="panelXml" width="100%" style="display:block;" &gt;&lt;/Panel&gt;</code></p>