Hello folks! welcome back to a new section of our tutorial on XML DOM. In this tutorial, we are going to be studying about the XML DOM Nodes.
Every XML DOM contains the information in the hierarchical unit called nodes and DOM describes these nodes and the relationship between them.
Every XML DOM contains the information in the hierarchical unit called nodes and DOM describes these nodes and the relationship between them.
Types of Node
The following flowchart below shows all the types of node available -
READ: XML DOM | Model
The following below are the most common types of nodes available in XML -
- Document Node - A complete XML document structure is a document node.
- Element Node - Every XML element is an element node. This also the only type of that can have attributes.
- Attribute Note - Each attribute is considered an attribute node. It contains information about an element node, but is not actually considered to be children of the element.
- Text Note - The document texts are considered as text nodes. It consists of more information or just whitespaces.
Some less common types of nodes are as follows -
- CData Node - This node holds information that should not be analyzed by the parser. Instead, it should just be passed on as plain text.
- Processing Instruction Node - This node holds information specifically aimed at the application.
- Comment Node - This node holds information about the data, and is usually ignored by the application.
- Document Fragments Node
- Notations Node
- Entity Reference Node
- Entities Node
READ: XML DOM | Introduction
Alright guys! This is where we are going to be rounding up for this tutorial post. In our next tutorial, we are going to be discussing about XML DOM Node Tree.
Feel free to ask your questions where necessary and we will attend to them as soon as possible. If this tutorial was helpful to you, you can use the share button to share this tutorial.
Follow us on our various social media platforms to stay updated with our latest tutorials. You can also subscribe to our newsletter in order to get our tutorials delivered directly to your emails.
Thanks for reading and bye for now.
Feel free to ask your questions where necessary and we will attend to them as soon as possible. If this tutorial was helpful to you, you can use the share button to share this tutorial.
Follow us on our various social media platforms to stay updated with our latest tutorials. You can also subscribe to our newsletter in order to get our tutorials delivered directly to your emails.
Thanks for reading and bye for now.