title: Hibernate: Element type "hibernate-mapping" must be declared
body: <p>I'm using hibernate for desktop application and I'm getting this exception:<br></p>
  
  <pre><code>Failed to create sessionFactory object.org.hibernate.InvalidMappingException: Unable to read XML
  Caused by: org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 20; Element type "hibernate-mapping" must be declared.
  </code></pre>
  
  <p>This is my configuration XML file:<br></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"&gt;
  &lt;hibernate-configuration&gt;
       &lt;session-factory&gt;
          &lt;property name="hibernate.dialect"&gt;org.hibernate.dialect.PostgreSQLDialect&lt;/property&gt;
          &lt;property name="hibernate.connection.driver_class"&gt;org.postgresql.Driver&lt;/property&gt;
          &lt;property name="hibernate.connection.username"&gt;postgres&lt;/property&gt;
          &lt;property name="hibernate.connection.password"&gt;root&lt;/property&gt;
          &lt;property name="hibernate.connection.url"&gt;jdbc:postgresql://localhost:5432/test_hibernate&lt;/property&gt;
  
          &lt;mapping resource="Employee.hbm.xml"/&gt;
      &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>
  
  <p>And this is the mapping XML file:<br></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"&gt;
  
  &lt;hibernate-mapping&gt;
   &lt;class name="model.Employee" table="employee"&gt;
       &lt;meta attribute="class-description"&gt;
          This class contains the employee detail.
       &lt;/meta&gt;
       &lt;id name="id" type="int" column="id"&gt;
          &lt;generator class="native"/&gt;
       &lt;/id&gt;
       &lt;property name="name" column="name" type="string"/&gt;
       &lt;property name="salary" column="salary" type="double"/&gt;
   &lt;/class&gt;
  &lt;/hibernate-mapping&gt;
  </code></pre>
  
  <p>What did I do wrong?</p>