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

  • Home
  • SEARCH
  • 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 6092663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:28:10+00:00 2026-05-23T12:28:10+00:00

In many xml examples i see many nameschemas which even dont use in xml

  • 0

In many xml examples i see many nameschemas which even dont use in xml like in below example we have defined nameschemas as xsi, aop and one default
namespace. If we dont use them what the purpose of defining them. Did not attach the xml as its quite big.

Second question is :- Assume that we using this nameschemas.. We usually defined the values of namechemas and schemalocation with some web address
like http://someAdddress//. What if we define them with some arbitrary value like ABC or something else. Will it make any differnce? Is there any
processing we do from these web addresses?

<?xml version="1.0" encoding="UTF-8"?> 
<beans xmlns="http://www.springframework.org/schema/beans" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:aop="http://www.springframework.org/schema/aop" 
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/ 
schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema 
/aop/spring-aop-2.0.xsd"> 

Another question is we have defined the schemalocation for xsi namespace only Not for aop namespace. Why so?

Last question is can we define namespace xsi1 instead of xsi? Does it make any im

  • 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-23T12:28:10+00:00Added an answer on May 23, 2026 at 12:28 pm

    Generally it should be the case that if a namespace binding isn’t used within a document, a declaration of that namespace is redundant and can safely be omitted (conversely, it won’t do any harm by being there.) I say it should be the case, but there are exceptions. One is DTD validation, which sometimes requires the presence or absence of a particular namespace declaration on a particular element (DTD processing isn’t namespace aware, so it treats namespaces as attributes). Another rather rare exception: I have seen XML vocabularies where namespace declarations are used to convey semantics other than simply declaring a binding for a namespace prefix, for example it might indicate version information. That’s bad XML design, but there’s a lot of bad XML design about.

    As for xsi:schemaLocation, some tools/applications will ignore this, others may interpret it as a request to perform schema validation against a schema found at a particular location.

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

Sidebar

Related Questions

I have found some similar questions like this one, however there are so many
I am trying to copy contents of one xml file into another xml file.
This is my current project structure: pom.xml /src /main /resources hibernate.cfg.xml /META-INF persistence.xml I
First and foremost, are there many android developers here? Is this a good place
In Spring web mvc 1) If we define DispatcherServlet as below <servlet> <servlet-name>appServlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
I am looking for an example of how to configure an ASP.NET MVC2 project
I was wondering if someone could help I've successfully been able to import an
I'm stuck in a C# program I'm developing, and I think it's because I
What are your suggestions for designing linq code in project? Especially, I`m interesting in
Reading StackOverflow and listening the podcasts by Joel Spolsky and Jeff Atwood, I start

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.