"XML Parser Error on line 1: content is not allowed in the preface." "Problem Solving method

Source: Internet
Author: User
Tags xml parser
Previously, when the project was published, every time you use the XML file in Windows with Notepad to save the run, you will always report an error: 
XML Parser Error on line 1: content is not allowed in the preface.
Have been just know this problem but do not know what is the problem, each time only in eclipse to edit and paste the past, today again encountered this problem, try to find the specific reasons on the Internet. Special here to write down also by the way to share to everyone. In fact, the
real reason is that you modify the save when the system changes the file encoding, we modify the file after the choice of Save as the time to select the encoding on the line.
! [Write a picture description here] (https://img-blog.csdn.net/20160918230818969)
Modify Encoding to
Ansi
Modify the code as shown, then save the line, and then run the project will be no problem.
if not, please leave a message, will answer again.

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.