Additional Interfaces

There are nine additional interfaces that we will not examine in low-level detail but will be required for many applications. The first four have to do with actual content:

  • CharacterData The CharacterData interface extends Node. No DOM objects of type CharacterData exist but rather this object represents common methods inherited by other DOM interfaces. The CharacterData interface contains eight methods for setting, getting, inserting, appending, and otherwise manipulating normal character data information.

  • Comment The Comment interface extends CharacterData and represents a comment in an XML document. No additional methods are defined on this interface.

  • Text The Text interface extends CharacterData. The Text interface contains ...

Get XML Development with Java™ 2 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.