Document, Document Type, and Entity Nodes

The Document node represents a document information item in addition to acting as the factory for new nodes. The DocumentType node has no direct Infoset equivalent, but it is where the document information item's [entities] and [notations] properties are accessed. Like the Infoset [entities] property, the DocumentType interface's entities attribute never contains parameter entities. Unlike the Infoset [entities] property, the DocumentType interface's entities attribute does not contain the document entity. However, the DocumentType interface does expose the external identifier (and optionally the contents) of the external DTD subset.

The Document node has two related nodes that are given special status: ...

Get Essential XML: Beyond Markup 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.