We now have a youtube channel. Subscribe!

XML DOM | Methods

XML DOM - Methods


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 Methods.

DOM as an API contains interfaces that represent different types of information that can be found in an XML document, such as elements and text. These interfaces include the methods and properties necessary to work with these objects. Properties defines the characteristics of the node whereas methods provides the way to manipulate the nodes.


DOM Classes and Interfaces

Following below is the list of DOM classes and interfaces -

S.No.Interface & Description
1

DOMImplementation

It provides a number of methods for performing operations that are independent of any particular instance of the document object model.

2

DocumentFragment

It is the "lightweight" or "minimal" document object, and it (as the superclass of Document) anchors the XML/HTML tree in a full-fledged document.

3

Document

It represents the XML document's top-level node, which provides access to all the nodes in the document, including the root element.

4

Node

It represents XML node.

5

NodeList

It represents a read-only list of Node objects.

6

NamedNodeMap

It represents collections of nodes that can be accessed by name.

7

Data

It extends Node with a set of attributes and methods for accessing character data in the DOM.

8

Attribute

It represents an attribute in an Element object.

9

Element

It represents the element node. Derives from Node.

10

Text

It represents the text node. Derives from CharacterData.

11

Comment

It represents the comment node. Derives from CharacterData.

12

ProcessingInstruction

It represents a "processing instruction". It is used in XML as a way to keep processor-specific information in the text of the document.

13

CDATA Section

It represents the CDATA Section. Derives from Text.

14

Entity

It represents an entity. Derives from Node.

15

EntityReference

This represent an entity reference in the tree. Derives from Node.


In our subsequent tutorials, we are going to be discussing the methods and properties of each of the above interfaces.


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 Loading.

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.

Post a Comment

Hello dear readers! Please kindly try your best to make sure your comments comply with our comment policy guidelines. You can visit our comment policy page to view these guidelines which are clearly stated. Thank you.
© 2023 ‧ WebDesignTutorialz. All rights reserved. Developed by Jago Desain