Error on line 2 of document : The processing instruction target matching "[xX][mM][lL]" is not allowed. Nested exception: The processing instruction target matching "[xX][mM][lL]" is not allowed.
今天遇到这样一个错误,原因很简单
<?xml version='1.0' encoding='UTF-8'?> 这段配置没有放在第一行
本文详细解析了一个XML配置错误,指出不应将< ?xml version='1.0' encoding='UTF-8' ? > 标签放置于文件开头的原因。通过具体实例,阐述了XML文档的正确格式及常见错误的解决方法。
873

被折叠的 条评论
为什么被折叠?



