XML DOM - DOM Node Object - DOM Node Object Attribute localName - XML DOM

Explain the localName attribute of the Node Object

The name of the local part of the name is specified by using the localName attribute.

Syntax

The syntax for using the localName attribute is as follows:

Example

node.xml contents are as below −

The illustration below displays the localName attribute usage.

Execution

The file is saved as nodeattribute_localname.htm on the server path and this file should be on the same path as that of node.xml in the server. The output appears as follows:

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

XML DOM Topics