XML DOM tagName Property

The following code fragment loads "books.xml" into xmlDoc and gets the tag name from the first <title> element

Definition and Usage

The tagName property returns the tag name of the selected element.

Syntax

elementNode.tagName

❮ Element Object