XML
  Home arrow XML arrow Page 2 - Introduction to XML Document Object Model
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  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Moblin 
JMSL Numerical Library 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
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? 
XML

Introduction to XML Document Object Model
By: Gayathri Gokul
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 15
    2004-02-09

    Table of Contents:
  • Introduction to XML Document Object Model
  • Covering Our Base
  • DOM Simplified
  • Working With XML Data
  • Traversing the Nodes in an XML Document

  • 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


    Introduction to XML Document Object Model - Covering Our Base


    (Page 2 of 5 )

    Base Objects

    In order to represent the hierarchical nature of XML, the DOM provides a whole set of objects, methods and properties that allow us to manipulate the DOM. We will not be able to cover them all in this tutorial, but we’ll cover a few to give you the essence of the sort of things you can achieve. First and foremost let’s see the DOM objects:

    ObjectDescription
    NodeA single node in the hierarchy
    NodeListA collection of Nodes
    NameNodeMapA collection of nodes allowing access by name as well as index.

    There are vast numbers of DOM properties that allow us to traverse through the node. The following list gives a few properties. We will sample these DOM objects later.

    PropertiesDescription
    parentNodeReturns the parent of the current node.
    childNodesReturns a NodeList containing the children of the node.
    firstChildReturns the first child of the current node.
    lastNameReturns the last child of the current node.
    previousSiblingReturns the previous sibling, i.e. the previous node at the same
    level of the hierarchy.
    nextSiblingReturns the next sibling, i.e. the next node at the same
    level of the hierarchy.
    nodeNameReturns the name of the node.
    nodeValueReturns the value of the node.

    To get the full list, check out MSDN online XML area at msdn.microsoft.com/xml/.

    More XML Articles
    More By Gayathri Gokul


     

    XML ARTICLES

    - More on Triggers and Styles and Control Temp...
    - Looking at Triggers with Styles and Control ...
    - A Closer Look at Styles and Control Templates
    - Styles and Control Templates
    - Properties and More in XAML
    - Elements and Attributes in XAML
    - XAML in a Nutshell
    - Importing XML Files into Access 2007
    - Using MSXML3.0 with VB 6.0
    - MSXML, concluded
    - MSXML, continued
    - MSXML Tutorial
    - Generating XML Schema Dynamically Using VB.N...
    - XSL Transformations using ASP.NET
    - Applying XSLT to XML Using ASP.NET





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT