ASP.NET Code
  Home arrow ASP.NET Code arrow How to Load XML Documents in ASP.NET 2.0
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET CODE

How to Load XML Documents in ASP.NET 2.0
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 27
    2007-02-20

    Table of Contents:
  • How to Load XML Documents in ASP.NET 2.0
  • Loading an XMLDocument
  • Load (string) where string is an XML file
  • Load (System.IO.Stream) method

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    How to Load XML Documents in ASP.NET 2.0


    (Page 1 of 4 )

    XML integration with the Microsoft .Net Framework 2.0 provides the XMLDocument class for working with XML. Loading an XML document, a task needed in many web applications, can be accomplished using several forms of the Load() method. The article introduces you to several of these load methods with concrete examples providing you with the background necessary to use these methods.

    The next picture shows you the Object Browser showing the XMLDocument class in the System.XML namespace. The XMLDocument class inherits from the XMLNode class as in the following hierarchical relationship:

    System.Object
       System.Xml.XmlNode
         System.Xml.XmlDocument

    The XMLDocument class has a large number of Public/Private properties and methods shown in the picture, which are also from the object browser in the Visual Studio 2.0 IDE. This class can invoke its methods not only to load XML documents but also create XML documents with all the different element types you would find in an XML document. This article however will look only at loading the XML document. We will assume it exists as an xml file on the hard drive of the machine; or is available as a file that can be accessed as an URL; or that the content is available as a string.

    More ASP.NET Code Articles
    More By Jayaram Krishnaswamy


       · XMLDocument class a full service class to address all needs of an XML document....
     

    ASP.NET CODE ARTICLES

    - How to Use the ListBox Control in ASP.NET 2.0
    - How to Load XML Documents in ASP.NET 2.0
    - DataGrid Code
    - ASP.NET Guestbook
    - User Controls and Client Side Scripting
    - ASP.NET Programming with Microsoft's AS...
    - ASP.NET Basics (part 3): Hard Choices
    - ASP.NET Basics (part 2): Not My Type
    - ASP.NET Basics (part 1): Nothing But .Net
    - Directory Tree Browser
    - How to get the confirmation of Yes/No from a...
    - Complete example using custom errors and wri...
    - Paging Certain # records per page .NET style
    - General Methods of formatting and Subtractin...
    - .NET LinkButton web control





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    Stay green...Green IT