Eclipse automatically verifies that XML files conform to dtd\xsd constraints __xml

Source: Internet
Author: User

Today, I tried the eclipse writing XML file, which uses a DTD constraint, and then writes the XML content, but finds it seems that eclipse did not check the XML file according to the DTD constraints, that is, the XML file was written incorrectly and not prompted.

Experiment for a long time, found that the right key has a "Validate" option to verify the XML file, but each save after the manual right key point "Validate", too troublesome ...

Have to find a solution, Chinese search does not seem to be found, we have not encountered this problem ...

Or use English search point, a lot of problems in Chinese can not be found.

Search "How to validate XML in Eclispe", a search found that Elipse official website has a solution.

URL: http://www.eclipse.org/webtools/community/tutorials/XMLValidation/XMLValidationTutorial.html

The solution is:

Select project then right button-> Select Properties

Put a picture of the official website:


After the end point is OK, the save XML file is automatically validated ...


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.