XML DOM | Entity Object

XML DOM - Entity Object


Hello folks! welcome back to a new section of our tutorial on XML DOM. In this tutorial post, we are going to be studying about the XML DOM Entity Object.

An XML Entity interface represents a known entity, either parsed or unparsed, in an XML document. The nodeName attribute that is inherited from the Node contains the name of the entity.

An Entity object does not have any parent node, and all its successor nodes are read-only.

Entity Object Attributes

The following table lists the attributes of the XML DOM Entity object -

AttributeTypeDescription
inputEncodingDOMStringThis specifies the encoding used by the external parsed entity. Its value is null if it is an entity from the internal subset or if it is not known.
notationNameDOMStringFor an unparsed entities, it gives the name of the notation and its value is null for the parsed entities.
publicIdDOMStringIt gives the name of the public identifier associated with the entity.
systemIdDOMStringIt gives the name of the system identifier associated with the entity.
xmlEncodingDOMStringIt gives the xml encoding included as a part of the text declaration for the external parsed entity, null otherwise.
xmlVersionDOMStringIt gives the xml version included as a part of the text declaration for the external parsed entity, null otherwise.


Alright guys! This is where we are going to be rounding up for this tutorial post. In our next tutorial, we will be studying about XML DOM inputEncoding Attribute.

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.