Configuration file Error: The target of processing instructions with matching [XX][MM][LL] is not allowed.

Source: Internet
Author: User
Tags processing instruction

Http://www.68idc.cn/help/buildlang/ask/20150108163110.html

——————————————————————————————————————————————————

When the framework is integrated, most of the XML configuration files are copied from the other framework.

Today in the practice of integration at the time before the project is clear, but copied to the project after the error.


Error code:

<span style= "color: #FF0000;" > Severity: Exception sending context initialized event to listener instance of class Org.springframework.web.context.Context LoaderListenerorg.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:Line 1 in XML document from file [D:\java\File\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\SpringMVC1\WEB-INF\classes\config \spring-common.xml] is invalid; Nested exception is org.xml.sax.SAXParseException; linenumber:1; Columnnumber:7; A processing instruction target that matches "[Xx][mm][ll]" is not allowed. </span>
A processing instruction target that matches "[Xx][mm][ll]" is not allowed. Description XML may not be standardized, where are some discrepancies? So I ctrl+shift+f formatted the code, and then indented the alignment. Deploy again with no error. Surfing the Internet, said the exception is that the XML does not <?xml version= "1.0" encoding= "UTF-8"?> start, that is, the first character must be <?xml ...


Workaround:

The canonical XML format,

<?xml version= "1.0" encoding= "UTF-8"?> must be the first element of the XML file and cannot be preceded by a space.

Configuration file Error: A processing instruction target that matches [XX][MM][LL] is not allowed.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.