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 9311843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T01:28:33+00:00 2026-06-19T01:28:33+00:00

In short: Can I prevent visual studio from loading some xsd’s in it’s internal

  • 0

In short: Can I prevent visual studio from loading some xsd’s in it’s internal intellisense engine? Loading certain xsd’s breaks intellisense.


To perform input validation on various xml documents, I use xsd. Some of the xsd files I use are standard, such as xml.xsd and various xhtml xsd’s. These xsd files are included in a class library as embedded resources.

However, having these files in the solution breaks the visual studio intellisense for all kinds of xml files, even in different projects. What seems to be happening is that both visual studio’s own xsd files and the “custom” embedded xsd files are loaded, probably since they apply to the same targetNamespace. However, this causes lots of warnings such as: The global attribute 'http://www.w3.org/XML/1998/namespace:lang' has already been declared. It’s particularly annoying for xslt files, but it seems to happen for all xml files that match multiple schemas. XHTML is another particularly problematic case since there are multiple schemas for just one namespace (strict, transitional…). As a consequence, intellisense stops working for the open xml file(s). Also, VS’s error list is spammed with lots of spurious warnings, hiding potentially useful warnings from sight.

I can disable or remove these schemas using XML > Schemas... but this is an unworkable solution since they’re all re-added whenever I open a different xml file. I’d have to remove the schemas possibly hundreds of times a day.

Is there any way to configure visual studio not to auto-load embedded schemas, or to load only specific schemas once and for all?

  • 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-06-19T01:28:35+00:00Added an answer on June 19, 2026 at 1:28 am

    Based on the lack of response, I’m guessing this is simply a bug: intellisense simply can’t deal with this situation.

    I’ve submitted a bug report and will update this answer if a solution is found: http://connect.microsoft.com/VisualStudio/feedback/details/777572/visual-studio-2012-xml-intellisense-broken-due-to-auto-loading-duplicate-xsd-files

    Solution/workaround

    If you’re locally including standard xsd’s (which is almost certain given that they’re conflicting with visual studio’s own xsd‘s), you probably don’t need to edit them much – just to include them as resources. I decided therefore to rename offending files such as xml.xsd to xml.xsd.intellisensehack. The file extension is irrelevant to the resource code (you can still open it like any other stream), but visual studio no longer automatically tries to use the file as an intellisense schema source.

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

Sidebar

Related Questions

Short version: How can I map two columns from table A and B if
The short question is - how can I prevent (delay) a bound UI element
Short version Is there a way to prevent R from ever using any virtual
I wanted to know how can I prevent a single ip address from using
DGV has no AllowSort property. How can I prevent user to sort the items?
Short version: Can I grant access to external databases to a role? Long version:
Short Question: Can I specify wildcards for custom console folding? If so, what is
Short question: Can anyone tell me what the requirements (especially when it comes to
is short: How can I invoke a base ctor after a child class ctor,
Short story: I can't make precompiled headers work properly with gcc -c option. Long

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.