Name

name: DOMString

Synopsis

This is the name of the DTD, which is the XML name following the XML DOCTYPE keyword in the source document. Read-only.

Java binding

public String getName( );

Java example

// Display document type information
DocumentType dtDoc = doc.getDoctype( );
     
System.out.println("This is a " + dtDoc.getName( ) + " document.");

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.