Chapter 6Accessing and Manipulating XML DataAbout This ChapterXML is central to data exchange between applications in the .NETFramework. You need to know the XML Document Object Model (DOM) andhow to access XML data in your applications. In this lesson you willlearn how to read and write data from XML documents, perform querieson XML documents, and validate XML documents with XML Schema. Inaddition, you will also learn to populate a DataSet with data from anXML file and write data from a DataSet into an XML file.Before You BeginTo complete the lessons in this chapter, you
Must have knowledge of programming in Microsoft Visual Basic .NETor Microsoft Visual C#
Must have a working knowledge of XMLLesson 1: Understanding the XML Document Object ModelYou need to know the XML Document Object Model (XML DOM) to work withXML data in your applications. In this lesson, you will learn aboutthe XML DOM and what constitutes a well-formed XML document. You willalso learn how to use the objects available in the XML DOM to read andwrite XML data. Finally, you will learn how to create an XML Parser inVisual Studio .NET.After this lesson, you will be able to
Describe the XML Document Object Model
Use the XML Document Object Model to read and write XML data
Create an XML Parser in Visual Studio .NETEstimated lesson time: 30 minutesOverview of the XML Document Object ModelTo enable disparate systems to communicate with each other, yourequire a standard that is understandable by all systems. Therefore,the obvious choice is a standard that is text-based. Because mostsystems understand text-based data, XML is the preferred standard ofcommunication. XML files conform to the standards developed by theWorld Wide Web Consortium (W3C). Let's take a look at a well-formedXML document.XML Document
<?xml version= "1.0"?><employees>
Page 1 of 53Accessing and Manipulating XML Data1/24/2005file://C:\Documents%20and%20Settings\vimandi\Local%20Sett...
Leave a Comment