title: Error in hibernate.cfg.xml
body: <p>In my hibernate.cfg.xml I receive the following error : </p>
  
  <blockquote>
    <p>Referenced file contains errors (<a href="http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd" rel="nofollow noreferrer">http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd</a>). For more information, 
     right click on the message in the Problems View and select "Show Details..."</p>
  </blockquote>
  
  <p>When I view "show details" I receive this error : </p>
  
  <blockquote>
    <p>The markup declarations contained or pointed to by the document type declaration must be well-formed</p>
  </blockquote>
  
  <p>Here is my hibernate.cfg.xml : </p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
  &lt;!DOCTYPE hibernate-configuration PUBLIC
            "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
            "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"&gt;
  &lt;hibernate-configuration&gt;
  &lt;session-factory&gt;
      &lt;property name="connection.url"&gt;jdbc:mysql://localhost/test&lt;/property&gt;
      &lt;property name="connection.username"&gt;root&lt;/property&gt;
      &lt;property name="connection.driver_class"&gt;com.mysql.jdbc.Driver&lt;/property&gt;
      &lt;property name="dialect"&gt;org.hibernate.dialect.MySQLDialect&lt;/property&gt;
      &lt;property name="connection.password"&gt;root&lt;/property&gt;
      &lt;property name="hibernate.hbm2ddl.auto"&gt;update&lt;/property&gt; 
   &lt;property name="transaction.factory_class"&gt;org.hibernate.transaction.JDBCTransactionFactory&lt;/property&gt;
      &lt;!--  thread is the short name for
        org.hibernate.context.ThreadLocalSessionContext
        and let Hibernate bind the session automatically to the thread
      --&gt;
      &lt;property name="current_session_context_class"&gt;thread&lt;/property&gt;
      &lt;!-- this will show us all sql statements --&gt;
      &lt;property name="hibernate.show_sql"&gt;true&lt;/property&gt;
  
      &lt;mapping class="com.event.model.Event"/&gt;
  
  &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>