摘要:
今天客户反馈回不能进行交换,并发回日志,发现报了一个错:The processing instruction target matching "[xX][mM][lL]" is not allowed经过检查,发现xsd文件的头文件前面加了注释。去掉后恢复正常 阅读全文
摘要:
今天做项目事发现了一个问题:org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)原因:XML文件编码和解析XML文件时的编码不一致,(XML是ANSI,解析时用UTF-8) 阅读全文