Name

DocumentType

Synopsis

The Document interface includes a single attribute, docType, that points either to a description of the DTD for the current document or to null if none exists.

Java example

// get document type information
DocumentType dtDoc = doc.getDoctype( );

Attributes

The DocumentType object contains the following attributes:

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.