XML/XSD intellisense not working in Visual Studio 2010

Posted by Jason on Stack Overflow See other posts from Stack Overflow or by Jason
Published on 2010-06-06T23:35:42Z Indexed on 2010/06/06 23:42 UTC
Read the original article Hit count: 871

I am working on xml and xsd files in VS 2010 but intellisense isn't working. Intellisense is working for the same files in VS 2008, however.

When I type '<xs:' options like "attribute", "complexType", "simpleType", or "element" do not appear.

Is there some difference between the VS 2008 and VS 2010 that I'm missing?

I add an xsd file to my solution. All the proper namespaces are generated automatically as such:

<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="XMLSchema2"
    targetNamespace="http://tempuri.org/XMLSchema2.xsd"
    elementFormDefault="qualified"
    xmlns="http://tempuri.org/XMLSchema2.xsd"
    xmlns:mstns="http://tempuri.org/XMLSchema2.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">

</xs:schema>

The "xsdschema.xsd" is in the "C:\Program Files\Microsoft Visual Studio 10.0\xml\Schemas" directory.

There is a check mark in the "Use" column in the XML Schemas dialog box.

© Stack Overflow or respective owner

Related posts about Xml

Related posts about visual-studio-2010