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