DTD
MyBatis · 3
MyBatis 3 configuration
The mybatis-config.xml file: settings, type aliases, environments and mappers.
About
The configuration elements must appear in a fixed order (properties, settings, typeAliases, …); the DTD reports one out of place.
Good to know
- The example is by xmlvalid.com.
Example document
mybatis-config.xml · 781 B · valid against this schema
In CI and from code
The same schema by its name, mybatis-3-config, through the API.
npx @xmlvalid/cli validate "**/*.xml" --schema mybatis-3-config
- uses: xmlvalid/validate-action@v1
with:
files: "**/*.xml"
schema: mybatis-3-config
api-key: ${{ secrets.XMLVALID_API_KEY }}
curl https://xmlvalid.com/api/v1/validations \
-H "Authorization: Bearer $XMLVALID_API_KEY" \
-F document={{ $schema->example ?? 'document.xml' }} -F schema=mybatis-3-config
Free accounts get 100 API validations a month. On Pro, a URL monitor can check a published document against this schema every hour and email you when it breaks. More CI setups