Document type extensions

The original methods of the DocumentType interface are still available:

					String        getName();
					NamedNodeList getEntities();
					NamedNodeList getNotations();
				

In addition, a small number of methods have been added to obtain information about the document model:

String getInternalSubset();
String getPublicId();
String getSystemId();

Note that a new object which implements this interface can be created using the new createDocumentType method in an object that implements the DOMImplementation interface (see below).

Internal subset

The contents of the internal subset of a document are returned as a single string using the getInternalSubset method. This string will therefore contain all the notation, entity, element and attribute ...

Get XML Companion, The, Third 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.