title: mybatis PersistenceException Mapper error
body: <p>I don't know what is wrong.
  Something is bad with mapper but everything looks good.</p>
  
  <p>File UserMapper.xml </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;mapper namespace="com.javacodegeeks.snippets.enterprise.UserMapper"&gt;
      &lt;select id="addUser" parameterType="int" resultType="com.javacodegeeks.snippets.enterprise.User"&gt;
          insert into  * from users where id = #{id}
      &lt;/select&gt;
      &lt;select id="getUser" parameterType="int" resultType="com.javacodegeeks.snippets.enterprise.User"&gt;
          select * from com.javacodegeeks.snippets.enterprise.User where id = #{id}
      &lt;/select&gt;  
  &lt;/mapper&gt;
  </code></pre>
  
  <p>I get this Error:</p>
  
  <pre><code>Exception in thread "main" org.apache.ibatis.exceptions.PersistenceException: 
  ### Error building SqlSession.
  ### The error may exist in UserMapper.xml
  ### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 70; Document root element "mapper", must match DOCTYPE root "null".
  at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:23)
  at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:51)
  at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:35)
  at Main.do1(Main.java:105)
  at Main.main(Main.java:124)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:606)
  at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
  Caused by: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 70; Document root element "mapper", must match DOCTYPE root "null".
  </code></pre>