title: Warning: validation was turned on but an org.xml.sax.ErrorHandler
body: <p>Any idea why this error is happening and how to fix it? I'm getting this error when trying to parse/load a config file:</p>
  
  <p>Error</p>
  
  <pre><code>Warning: validation was turned on but an org.xml.sax.ErrorHandler was not
  set, which is probably not what is desired.  Parser will use a default
  ErrorHandler to print the first 10 errors.  Please call
  the 'setErrorHandler' method to fix this.
  Error: URI=null Line=3: Document root element "persistence", must match DOCTYPE root "null".
  Error: URI=null Line=3: Document is invalid: no grammar found.
  null
  []
  null
  </code></pre>
  
  <p>Main code</p>
  
  <pre><code>public static void main(String[] args) throws ConfigurationException {
          config = new XMLPropertiesConfiguration(new File("META-INF/vamola.xml"));                                                                                                                                   
          System.out.println(config.getString("persitence-unit.provider"));
          System.out.println(config.getList("persistence-unit.properties.name"));
  
      }
  </code></pre>
  
  <p>XML FILE</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;persistence version="1.0"
      xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"&gt;
      &lt;persistence-unit name="dbBank" transaction-type="RESOURCE_LOCAL"&gt;
          &lt;provider&gt;oracle.toplink.essentials.PersistenceProvider&lt;/provider&gt;
  
          &lt;class&gt;br.ufg.inf.server.Account&lt;/class&gt;
          &lt;class&gt;br.ufg.inf.server.UserBank&lt;/class&gt;
  
          &lt;properties&gt;
              &lt;property name="toplink.jdbc.user" value="derby" /&gt;
              &lt;property name="toplink.jdbc.password" value="senha" /&gt;
              &lt;property name="toplink.jdbc.url" value="jdbc:derby://192.168.80.125:1527/db/master/dbBank;create=true"/&gt;
              &lt;property name="toplink.jdbc.driver" value="org.apache.derby.jdbc.ClientDriver" /&gt;
              &lt;property name="toplink.ddl-generation" value="create-tables" /&gt;
              &lt;property name="toplink.logging.level" value="OFF" /&gt;
              &lt;property name="toplink.target-database" value="Derby" /&gt;
          &lt;/properties&gt;
      &lt;/persistence-unit&gt;
  &lt;/persistence&gt; 
  </code></pre>