title: what is use of DOCTYPE tag in hibernate mapping files?
body: <p>I am new to hibernate and i am using it with java. I have made hibernate mapping file for my Entity and tested it on local machine and it worked fine.
  However when I was running on server I got error as <strong>"InvalidMappingException"</strong></p>
  
  <p>But after putting following tag:</p>
  
  <pre><code>&lt;!DOCTYPE hibernate-mapping PUBLIC
  "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
  "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"&gt;
  </code></pre>
  
  <p>it got solved.</p>
  
  <p>What was problem which got resolved after putting this <code>&lt;!DOCTYPE...&gt;</code> tag in hbm file ?</p>