XML问题: The processing instruction target matching "[xX][mM][lL]" is not allowed
2016-12-08 17:26
453 查看
在读取XML过程中出了这个问题:
The processing instruction target matching "[xX][mM][lL]" is not allowed
原XML内容如下:
<?xml version="1.0" encoding="UTF-8"?> <config> <config name="host_ip" value="192.168.0.250" /> <config name="port" value="5060" /> <config name="xhost_ip" value="192.168.0.250" /> <config name="xhost_port" value="5020" /> <config name="server_ip" value="192.168.2.4" /> <config name="server_port" value="5060" /> <config name="server_host" value="domain.com" /> <config name="pp" value="mppImpl" /> </config>
找了弄了好久找不出问题所在,
上网查一下,有人说在首行有多余的空格.
<?xml version="1.0" encoding="UTF-8"?>
这行?
找了好久,没有找到
再仔细看看
......
原文:
<?xml version="1.0" encoding="UTF-8"?>
去掉空格后:
<?xml version="1.0" encoding="UTF-8"?>
原来多出来的空格在"<"前面....
改完,保存,运行,OK~~
相关文章推荐
- 成功解决问题[Fatal Error] test.xml:1:7: 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.
- 由于空格引起的xml错误之The processing instruction target matching "[xX][mM][lL]" is not allowed以及the markup in the document prec
- XML解析异常之 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.
- The processing instruction target matching "[xX][mM][lL]" is not allowed.
- web.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错误解决办法总结
- ofbiz fop 报错 The processing instruction target matching "[xX][mM][lL]" is not allowed
- web.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 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
- org.xml.sax.SAXParseException: 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 al