When I open XSD files in Visual Studio, some of them open up as diagram representations, while some open up as code.
How do I switch between the diagram view and code view?
In the XML Schema Explorer, click the item whose name is the name of the file and then right click and there you will see "View Code". To do this you don't need the file to be part of your solution.
You can open the XML Schema Explorer either from View Menu or from the designer.
In order to view the XSD as code in visual studio, you can right click on the document in the solution explorer, choose the Open With... From the menu that pops up, choose Xml Editor (or Xml (Text) editor if it's Visual studio 2010). This should open it in the source view.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With