简体   繁体   中英

Is it possible to use xml intellisense in vb.net code in visual studio 2010?

I'm currently learning the XML features of VB.NET and Visual Studio 2010, and I have learned how I can enable intellisense in a XML file by associating it with a schema, and this works well. However since I'm mostly generating xml and not reading data from an xml file, I would like to be able to do the same when writing xml in a VB.NET module, class etc.

eg when writing xml directly in vb.net code like this:

Dim JohnDoe As XElement = <Person Name="John Doe">
                              <Height>180</Height>
                              <HeightUnit>Meter</HeightUnit>
                              <HeightUnitType>Metric</HeightUnitType>
                          </Person>

Is this possible?

我发现问题是必须将targetNamespace属性手动添加到我的架构中,以便我能够导入它。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM