O'Reilly logo

Visual Basic® .NET by Example by Bob Donald, Gabriel Oancea

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Synchronizing XML and DataSets

So far in this chapter, we focused on converting XML to a DataSet or a DataSet to XML. It is also possible to make changes to a DataSet or the XML and have the changes reflected back in the other format. For example, if I load a DataSet I can get an updateable XML view of the DataSet. If I make changes to the XML, the changes are immediately reflected in the DataSet. If I make changes to the DataSet, the changes are immediately reflected in the XML.

Let's walk through an example showing this. Here is an XML Schema defining an XML document that contains company information. The file is named Company.xsd and includes department and employee information:

 <?xml version="1.0" standalone="yes"?> <xsd:schema id="Company" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required