JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Examining Dataset Schema

As discussed in the In Depth section of this chapter, ADO.NET uses XML to transfer data, and uses XML schema to validate that data. If you know what you're doing in XML, you might want to edit or check the schema that Visual Basic is using for your data; you can work with such schema directly.

To do that, you need a dataset. To take a look at the XML schema Visual Basic is using for a particular dataset, use the Data|View Dataset Schema menu item, or right-click a dataset and select the View Schema menu item. This opens the dataset's schema, which is a file with the extension .xsd, in a Visual Basic designer, as you see in Figure 20.22. As you see in that figure, you can work with the XML of the schema directly in that designer.

Click To expand
Figure 20.22: A dataset's schema in XML view.

You can toggle between XML and Dataset view by clicking the buttons at the bottom of the designer-in XML view, you see the actual XML of the schema, and in Dataset view, you see the resulting types, field by field, for the dataset, as shown in Figure 20.23.

Click To expand
Figure 20.23: A dataset's schema in dataset view.

Related solution:

Found on page:

Writing Datasets to XML and Reading Datasets from XML


Previous Section Next Section

JavaScript Editor Free JavaScript Editor     JavaScript Editor