The Notation Interface

The Notation interface represents a notation declared in the DTD; it is not part of the tree. A Notation object has no parent and no children. The only way to access a document's notations is through the getNotations() method of the DocumentType object.

Note

Notations are very uncommon in practice. You may want to skip this section unless you discover a specific need for it.

Example 11.24 summarizes the Notation interface. This interface has methods to get the system ID and public ID for the notation, either of which may be null. As usual, Notation objects also have all the methods of the Node superinterface such as getNodeName() and getNodeValue().

Example 11.24. The Notation Interface
 package org.w3c.dom; public interface ...

Get Processing XML with Java™: A Guide to SAX, DOM, JDOM, JAXP, and TrAX 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.