Eclipse manually add schema constraints for XML files

Source: Internet
Author: User

Because of the use of XML node hints in XML files, the introduction of URLs is generally used. This method can only be used when the network is connected, and in the case of network instability, smart hints are poor, therefore, by setting up eclipse to local support for the schema, you can solve the above problem.

The following is an example of http://www.springframework.org/schema/context/spring-context-4.2.xsd setting:

First step: Select Windows-Preferences

Second step: Find to drop-down list XML--XMLcategory, click on the XML category, the right area appears a new interface

Third step: Select User Specified Entries, click the Add button, pop up a dialog box

Fourth step: Click File System ... Find the XSD file and select it, and the XSD file is usually placed under the spring-framework-4.3.8.release\schema file.

Fifth step: Modify the Key type drop-down option in Namespace name for Schema location

Sixth step: The file name of the corresponding Schema is added to theKey edit box after the path. For example, after importing the Schema file, the path is Http://www.springframework.org/schema/context, after which the path is added /spring-context-4.2.xsd , click Apply and Closeat the bottom of the OK->preferences window, and then finish.

Eclipse manually add schema constraints for XML files

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.