title: How to insert XML Prolog <?xml version = "1.0" encoding = "UTF-8"?>to Rest XML response in Spring Boot Application
body: <p>How to insert XML Prolog to Rest XML response in Spring Boot Application.</p>
  
  <p>I am using jackson xml dataformat in spring boot rest api.</p>
  
  <p>My Current rest-xml response is:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Response&gt;
       &lt;person id = "hello"&gt;
          &lt;name&gt;xyz&lt;/name&gt;
       &lt;/person&gt;
  &lt;/Response&gt;
  </code></pre>
  
  <p>while I want :</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version = "1.0" encoding = "UTF-8"?&gt;
  &lt;Response&gt;
       &lt;person id = "hello"&gt;
          &lt;name&gt;xyz&lt;/name&gt;
       &lt;/person&gt;
  &lt;/Response&gt;
  </code></pre>