XML Parser Errors See Details for more Information XML Parser Error on line 1: Document root ele

Posted llguanli

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了XML Parser Errors See Details for more Information XML Parser Error on line 1: Document root ele相关的知识,希望对你有一定的参考价值。

1、错误描写叙述

XML Parser Errors
  See Details for more Information
  XML Parser Error on line 1: Document root element "generatorConfiguration", must match DOCTYPE root "null".
  XML Parser Error on line 1: Document is invalid: no grammar found.
技术分享图片


2、错误原因

     generatorConfig.xml以<generatorConfiguration> 开头,没有正确配置头部


3、解决的方法

     在上述<generatorConfiguration>头部加入例如以下代码:

<?xml version="1.0" encoding="UTF-8"?>  
<!DOCTYPE generatorConfiguration  
  PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"  
  "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"> 



以上是关于XML Parser Errors See Details for more Information XML Parser Error on line 1: Document root ele的主要内容,如果未能解决你的问题,请参考以下文章

MSXML 4.0 SP3 Parser 是啥意思?

:app:processDebugMainManifest Manifest merger failed with multiple errors, see logs

Manifest merger failed with multiple errors, see logs问题处理

Manifest merger failed with multiple errors, see logs问题解决

An exception has occurred, use %tb to see the full traceback.----parser.parse_args()报错

Manifest merger failed with multiple errors, see logs