Attribute overview in & lt; beans & gt; in Spring configuration file XML, xmlbeans

Source: Internet
Author: User

Attribute overview in <beans> in Spring configuration file XML, xmlbeans
[Html]View plaincopy

  1. <Beans xmlns = "http://www.springframework.org/schema/beans"
  2. Xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
  3. Xsi: schemaLocation = "http://www.springframework.org/schema/beans
  4. Http://www.springframework.org/schema/beans/spring-beans.xsd>


Beans -- root node of the xml file.


Xmlns -- the abbreviation of XML NameSpace, because the tag names in the XML file are custom, and the tags you write and the tags defined by others are likely to be renamed repeatedly, but the functions are different, therefore, you need to add a namespace to distinguish this xml file from other xml files, similar to the package in java.

Xmlns: xsi refers to the xml file that complies with the xml specification. xsi Full name: xml schema instance, refers to the standard of elements defined in the schema resource file used in particular. That is, what standards are observed for the elements defined in the/spring-beans-2.0.xsd file.

Xsi: schemaLocation -- refers to the specification observed by xml elements in this document. The schemaLocation attribute is used to reference the schema document, the parser can use this document to verify the XML instance document as needed. Its values (URIs) are paired. The first value indicates the namespace, and the second value indicates the location of the schema document of the namespace, the two values are separated by spaces.

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.