关于XML文件的异常:The processing instruction target matching "[xX][mM][lL]" is not allowed.
2011-08-31 15:31
567 查看
Exception in thread "main"
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 2 in XML document from file [D:\workspace\MySpringWork2\bean.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The processing instruction target matching
"[xX][mM][lL]" is not allowed.
Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
如果出现以上的异常,只要将XML文件中的所有注释全部删除就可以避免了。
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 2 in XML document from file [D:\workspace\MySpringWork2\bean.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The processing instruction target matching
"[xX][mM][lL]" is not allowed.
Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
如果出现以上的异常,只要将XML文件中的所有注释全部删除就可以避免了。
相关文章推荐
- XML解析异常之 The processing instruction target matching "[xX][mM][lL]" is not allowed.
- XML解析异常之 The processing instruction target matching "[xX][mM][lL]" is not allowed.
- 由于空格引起的xml错误之The processing instruction target matching "[xX][mM][lL]" is not allowed以及the markup in the document prec
- The processing instruction target matching "[xX][mM][lL]" is not allowed
- 关于解决 The processing instruction target matching "[xX][mM][lL]" is not allowed
- Parse Fatal Error at line 1 column 7: The processing instruction target matching "[xX][mM][lL]" is not allowed.
- ofbiz fop 报错 The processing instruction target matching "[xX][mM][lL]" is not allowed
- The processing instruction target matching "[xX][mM][lL]" is not allowed.
- The processing instruction target matching "[xX][mM][lL]" is not allowed.
- The processing instruction target matching "[xX][mM][lL]" is not allowed.
- The processing instruction target matching "[xX][mM][lL]" is not allowed.
- xml The processing instruction target matching "[xX][mM][lL]" is not allowed
- The processing instruction target matching "[xX][mM][lL]" is not allowed.
- The processing instruction target matching "[xX][mM][lL]" is not allowed
- The processing instruction target matching "[xX][mM][lL] "is not allowed错误解决办法总结
- The processing instruction target matching "[xX][mM][lL]" is not allowed.
- The processing instruction target matching "[xX][mM][lL]" is not allowed.
- XML问题: The processing instruction target matching "[xX][mM][lL]" is not allowed
- The processing instruction target matching "[xX][mM][lL]" is not allowed
- The processing instruction target matching "[xX][mM][lL]" is not allowed