title: How to use DOCTYPE in Spring XML file
body: <p>Most of the time we do not declare <code>DOCTYPE</code> in Spring. 
  But I want to declare a DOCTYPE in my XML context file so that I can use <code>ENTITY</code> in my xml file.</p>
  
  <p><strong>For example:</strong></p>
  
  <pre><code>&lt;!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN"
                    "http://www.springframework.org/dtd/spring-beans-2.0.dtd"
      [&lt;!ENTITY % crmHome SYSTEM "crm-home.dtd"&gt; %crmHome;]
  &gt;
  </code></pre>
  
  <p>This gives many errors like...</p>
  
  <pre><code> - Attribute "xmlns" must be declared for element type "beans".
  
   - Attribute "xmlns:xsi" must be declared for element type "beans".
  
      etc.....
  </code></pre>
  
  <p>What is the way to achieve this?</p>