I am creating a xml file and wanted to add a xml schema file to it. So i added an .xsd file but it contains .xss and .xsc files. Do i need to do anything on those files to get my schema definition right? What is the purpose of them?
An XSC file is an auto-generated file created by the Visual Studio software development IDE. It is created after the user creates an XML schema (XSD file) containing data in addition to the schema. Programmer: Microsoft Corporation.
An XSD file is an XML Schema file. Open one with Visual Studio or any text editor.
In Visual Studio, open the File menu and select New > File. Or, use the Ctrl+N keyboard shortcut. In the New File dialog box, select XML Schema and then select Open. A new file is created.
Oh..k..finally i got it...
Now that I think about it I think the behavior I am seeing is because of how the file was originally created rather than the XSD itself. If we originally created the file as a dataset (which generates an XSD) then we'll get all the baggage files (.cs, .xsc, .xss). These files are created because the XSD represents a dataset rather than a pure XML schema file. If we don't want the schema treated as a dataset then open the XSD file in the text editor and remove the various msprop and msdata attributes applied to the root dataset element. Then we can delete the subfiles associated with the file and be left with the raw XML XSD. VS will then treat the file as a regular XSD.
so i opened the xsd file in text editor and changed
msdata:IsDataSet="true" to
msdata:IsDataSet="false"
When i reload the project, the files were no longer there..
But the question still remains - even though we are not using these files, we are able to get the output so are these files just for the sake of designing and not for any other purposes?
Is there any one who have worked with these files ? can any one give one example in which we are treating xsd as dataset ?
the .xss stores details of how tables are placed in the visual representation of the dataset.
https://datatypes.net/open-xss-files
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