Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add an XML schema to Visual Studio

I want Intellisense support when writing App.config sections or XML configuration files for components like NHibernate, log4net, or Unity. What options do I have to get Visual Studio to find these files and load Intellisense?

(Assume we have the schema file.)

like image 674
Anthony Mastrean Avatar asked Nov 30 '09 21:11

Anthony Mastrean


People also ask

How do I view the XML schema in Visual Studio?

If you are on the Start View, click the XML Schema Explorer link. If you are on the Graph View or the Content Model View and have nodes in your workspace, use the context (right-click) menu to select the XML Schema Explorer. You can also select the XML Schema Explorer from the View menu.

Can you use XML in Visual Studio?

Visual Studio includes tools and features that make it easier to work with XML, XSLT, and XML schemas.


1 Answers

Yes it is possible to do this. You need to associate the schema with the document and the XML editor will then provide intellisense. The following links go over how to achieve this

  • http://msdn.microsoft.com/en-us/library/ms255811.aspx
  • http://msdn.microsoft.com/en-us/library/ms255815.aspx
like image 71
JaredPar Avatar answered Oct 28 '22 02:10

JaredPar