Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6778693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:17:46+00:00 2026-05-26T16:17:46+00:00

I have come across many xml configurations in struts , spring , ibatis etc.

  • 0

I have come across many xml configurations in struts , spring , ibatis etc. i used to use the declaration blindly coz im ignorant. I really want to know how this declarations are useful, is the one use being confirming to the DTD ?

<?xml version="1.0" encoding="UTF-8"?>
 <beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:17:47+00:00Added an answer on May 26, 2026 at 4:17 pm

    If you mean:

    xmlns="http://www.springframework.org/schema/beans" and xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    this are name spaces.

    the line
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> is about where the name space declaration can be found.


    From the comments:

    why do we give them like that? is it for the xml syntax validation only? or some other extra purposes?

    Assume you have two different XSD schemata that you want to use both in your XML. And both of them define a tag with the same name, but different meaning. Then an program that read your XML file need to understand which of the both tags you mean. So that is what the prefix (xsi) or what ever is used for.

    The complete thing is used for validation, and editor support (auto completion). But also for stuff that is proceeding the XML without knowledge about the concrete semantics. (XLST for example.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have come across many ad hoc implementations of thread class in C++, but
I have come across the following type of code many a times, and I
I have come across a Silverlight project that needed to make use of a
This is a particular problem that I have come across many times, but I
I have come across a weird problem concerning composite keys and one-to-many relationship. I
Hay, not sure how many of you have come across this, but i was
Many C/C++/Fortran and other programmers would have come across stack overflow errors. My question
I am looking into responsive web design and have come across many methods of
I have come across a lot of optimization tips which say that you should
I have come across what must be a common problem. When I have an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.