Summary

Team Fly 

Page 504

Can you go the other way? Create a DataSet, then change it into XML? Sure. Build a dataset from the Pubs sample database by adding an OleDbDataAdapter from the Toolbox to your form, then follow the instructions provided by the Data Adapter Configuration Wizard. Then right-click the OleDbDataAdapter icon on your form and choose Generate Dataset.

Click the DataSet1.xsd tab at the top of the Design window to see your new DataSet. Click the XML tab at the bottom of the Design window to see its XML version, as shown in Figure 17.4:

image

FIGURE 17.4 It's easy to go the other way: From database table to XML.

Summary

In this chapter you saw how to manage XML-based programming, starting with the differences between, and uses for, DOM and SAX, the two primary APIs supporting XML.

You explored XML namespaces, schemas, and XSD along with XML data types. Then you went on to manipulate XML features programmatically, recursively walking nodes and transforming data into XML and back from XML into data again.

Finally, you learned how to employ serialization to persist data two ways: via SOAP and via simpler, more streamlined, XMLSerializer techniques. And you saw the uses, and limitations, of self-description during deserialization.

Team Fly 


Visual Basic  .NET Power Tools
Visual Basic .NET Power Tools
ISBN: 0782142427
EAN: 2147483647
Year: 2003
Pages: 178

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net