What is XML DOM Node

In this articles I am going to explain about how to use XML DOM node.
  • 1788

What is XML DOM node

  • The Node object is the basic data type of Document Object Model and the entire document is a document node.
  • An element node is use XML DOM node
  • Text node is also use the text in XML DOM.
  • Any child node is not all node types.
  • Any attributes node is a attribute in XML DOM.
  • Comments node is also comment in DOM.

 XML DOM Example

<?xml version="1.0" encoding="iso-8859-1"?>


    <book category="cooking">

        <title lang="en">Everyday Indian</title>






    <book category="children">

        <title lang="en">Harry Potter</title>

        <author>J K. Rowling</author>





    <book category="web">

        <title lang="en">XQuery</title>

        <author>Vaidyanathan Nagarajan</author>





    <book category="web" cover="paperback">

        <title lang="en">Learning XML</title>

        <author>Erik T. Ray</author>







Define the code

  • <book> is a root node in XML. All node is define the in side of <book> node and contain the data.

  • In this Example we define four books in the <book> node.;

  • <title>, <author>, <year>, <price> is contains all the data of the book node.

  • Each node contain all different data in <book> node.

You may also want to read these related articles :

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2020 DotNetHeaven. All rights reserved.