Article ID: 313824 - View products that this article applies to.
This article was previously published under Q313824
This article provides a roadmap for programming XML with the Document Object Model (DOM) parser of the .NET Framework. To help with learning a Microsoft product or technology, roadmap articles provide links to useful information, including online documentation, Microsoft Knowledge Base articles, and white papers.
This article assumes a familiarity with the Worldwide Web Consortium (W3C) DOM standard.
XML in the .NET Framework is implemented under the System.Xml namespace. The following DOM-related classes provide ways to access, modify, and delete content in XML documents by using the DOM model:
Typical steps in DOM-model processing include loading the XML data into an XmlDocument instance, manipulating or querying the data by using the DOM classes, and then persisting the results. The following Knowledge Base articles provide code samples for performing these activities:
(http://support.microsoft.com/kb/317661/EN-US/ )HOW TO: Load and Save XML by Using DOM in .NET Framework with Visual Basic .NET
(http://support.microsoft.com/kb/317662/EN-US/ )HOW TO: Load and Save XML by Using DOM in .NET Framework with Visual C# .NET
(http://support.microsoft.com/kb/317663/EN-US/ )HOW TO: Access XML Data Using DOM in .NET Framework with Visual Basic .NET
(http://support.microsoft.com/kb/317664/EN-US/ )HOW TO: Access XML Data Using DOM in .NET Framework with Visual C# .NET
(http://support.microsoft.com/kb/317665/EN-US/ )HOW TO: Modify XML Data by Using DOM in .NET Framework with Visual Basic .NET
317666You can also run XSL transformations (XSLT), validate XML documents against schemas, and serialize and deserialize XML data by using the System.Xml classes in .NET Framework. For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/317666/EN-US/ )HOW TO: Modify XML Data by Using DOM in .NET Framework with Visual C# .NET
(http://support.microsoft.com/kb/313651/EN-US/ )INFO: Roadmap for XML in the .NET Framework
The DOM model is suited for applications that require random, read/write access to the data where memory consumption is not a factor. The pull model is suited for applications that require speed and memory conservation. Under many circumstances, the required solution may be a hybrid of these two models. For example, if part of a very large XML document needs to be manipulated, it may be efficient to use the pull model to read it, and then construct a DOM with only the data needed for additional modification.
http://support.microsoft.comYou have several options to find answers to your questions. You can search the Microsoft Knowledge Base, post your questions or share your experiences on Microsoft newsgroups, obtain the latest service packs and news about a specific product, or contact Microsoft Product Support.
Contact us for more help
Connect with Answer Desk for expert help.