Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How to view xsd code generated from xsd?


Asked by Vincent Greer on Dec 15, 2021 FAQ



When you open .XSD, by default it opens in Visual Studio DataSet Editor (pale blue with grey lines), who’s context menu “View Code” corresponds to *.cs file. So when it doesn’t have one, it doesn’t show you.
Additionally,
XSD files here are a convenient way of giving information about the XML files, without sharing the code. Clients can use the XSD file to validate the XML files, and/or generate code themselves that adheres the structure of the XML files, thereby making their life easy.
Subsequently, If you specify an XML file (.xml extension), Xsd.exe infers a schema from the data in the file and produces an XSD schema. The output file has the same name as the XML file, but with the .xsd extension.
In fact,
When you open .XSD, by default it opens in Visual Studio DataSet Editor (pale blue with grey lines), who’s context menu “View Code” corresponds to *.cs file. So when it doesn’t have one, it doesn’t show you. But if you open the same .XSD with Schema Editor (Yellow background) from the VS Solution Explorer à Right Click à Open With à “XML...
Likewise,
XSD filescan also openwith Microsoft Visual Studio, XML Notepad, EditiX XML Editor, Progress Stylus Studio, and XMLSpy. Oxygen XML Editor is one of a few XSDopeners that works on Linux, Mac, and Windows. You can use a text editor as an XSD viewerand editor, too, given that the fileis just a text file. Click to see full answer.