Name

tagName: DOMString

Synopsis

The XML tag name from the original document.

Java binding

public String getTagName( );
     
// Show the name of the root element tag
Element elem = doc.getDocumentElement( );
System.out.println("This is a " + elem.getTagName( ) + " document.");

Methods

The following methods are defined for this object:

Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.