title: mybatis mapper xml: The content of element type "mapper" must match
body: <p>I'm having a hard time getting my simple mybatis file to work. I have this file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;!DOCTYPE mapper
      PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
      "http://mybatis.org/dtd/mybatis-3-mapper.dtd"&gt;
  &lt;mapper namespace="truthtree.model.mysql.UserMapper"&gt;
  
      &lt;typeAlias alias="User" type="truthtree.model.mysql.User" /&gt;
  
      &lt;select id="getAllUsers" resultType="User"&gt;
          select * from User
      &lt;/select&gt;
  
      &lt;select id="findUserByID" resultType="User"&gt;
          select *
          from User
          where id=#{id,javaType=int}
      &lt;/select&gt;
  
      &lt;select id="findByNameAndPassword" resultType="User"&gt;
          select *
          from User
          where name = #{name,javaType=String}
            and password = #{password,javaType=String}
      &lt;/select&gt;
  
  &lt;/mapper&gt;
  </code></pre>
  
  <p>I get the following exception:</p>
  
  <p>Caused by: org.xml.sax.SAXParseException: The content of element type "mapper" must match "(cache-ref|cache|resultMap*|parameterMap*|sql*|insert*|update*|delete*|select*)+".</p>
  
  <p>Which is confusing because I definitely have some s in there. Any ideas what could be wrong here? Thanks!</p>