Local support for schema in Eclipse:xml file

Source: Internet
Author: User

Because of the use of XML node hints in XML files, the introduction of URLs is generally used, such as

<beans xmlns= "Http://www.springframework.org/schema/beans"
Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"
xmlns:context= "Http://www.springframework.org/schema/context"
xmlns:tx= "Http://www.springframework.org/schema/tx"
xsi:schemalocation= "Http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/ Spring-beans-3.1.xsd
Http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
Http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd ">

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 a set of http://www.springframework.org/schema/context/spring-context-3.1.xsd as an example:

First step: Select Windows-->preferences

Second step: Find the drop-down list xml-->xml category, click on the XML category, a new interface appears in the right section

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

Fourth step: Find the XSD file and select it, the general XSD file is placed in D:\EngineerSoftware\java_tool\spring-framework-3.2.0.rc2-dist\ The Spring-framework-3.2.0.rc2\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 the Key edit box after the path. For example, after importing the schema file path is HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/AOP, after the path to add \spring-aop-3.2.xsd, click OK, it is done.

Local support for schema in Eclipse:xml file

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.