Create XSD from XML
-
Hi, I've got an XML file which I want to read in vb.NET. I've tryied with the XMLDocument object but it's not enough for what I want to do. So now I want to read it as a dataset but I need an XML Schema. So my question, is it possible to build an XLT file from an XML file ? Thx Sybux
-
Hi, I've got an XML file which I want to read in vb.NET. I've tryied with the XMLDocument object but it's not enough for what I want to do. So now I want to read it as a dataset but I need an XML Schema. So my question, is it possible to build an XLT file from an XML file ? Thx Sybux
Open your XML data file in Studio, you said you're using VB .NET so I have to assume your using Visual Studio here as well ... anyway, right-click and select the Create Schema option; this will build an XSD file from the XML file. Once you've done that, and the XSD is open in the editor, you can make changes as you see fit. When your done with your changes to the XSD, right-click, select the Generate DataSet. Go to the form you want to use the DataSet on and drop a DataSet component on the form. From the typed drop-down list, select your XSD file and you're ready to go. Hope this helps(?) D.