Provides the interfaces for the Document Object Model (DOM). Supports the Document Object Model (DOM) Level 2 Core Specification, Document Object Model (DOM) Level 3 Core Specification, and Document Object Model (DOM) Level 3 Load and Save Specification.
- API Note:
- The documentation comments for the get and set methods within this API are
written as property definitions and are shared between both methods. These
methods do not follow the standard Java SE specification format.
NodeTextContent property as an example, both
setTextContentshared the same content that defined the TextContent property itself.
Attrinterface represents an attribute in an
Elementobject.CDATA sections are used to escape blocks of text containing characters that would otherwise be regarded as markup.The
CharacterDatainterface extends Node with a set of attributes and methods for accessing character data in the DOM.This interface inherits from
CharacterDataand represents the content of a comment, i.e., all the characters between the starting '
<!--' and ending '
Documentinterface represents the entire HTML or XML document.
DocumentFragmentis a "lightweight" or "minimal"
doctypeattribute whose value is either
DOMConfigurationinterface represents the configuration of a document and maintains a table of recognized parameters.
DOMErroris an interface that describes an error.
DOMErrorHandleris a callback interface that the DOM implementation can call when reporting errors that happens while processing XML data, or when doing some other processing (e.g. validating a document).DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impossible to perform (either for logical reasons, because data is lost, or because the implementation has become unstable).The
DOMImplementationinterface provides a number of methods for performing operations that are independent of any particular instance of the document object model.The
DOMImplementationListinterface provides the abstraction of an ordered collection of DOM implementations, without defining or constraining how this collection is implemented.This interface permits a DOM implementer to supply one or more implementations, based upon requested features and versions, as specified in DOM Features.
DOMLocatoris an interface that describes a location (e.g.The
DOMStringListinterface provides the abstraction of an ordered collection of
DOMStringvalues, without defining or constraining how this collection is implemented.The
Elementinterface represents an element in an HTML or XML document.The
ElementTraversalinterface is a set of read-only attributes which allow an author to easily navigate between elements in a document.This interface represents a known entity, either parsed or unparsed, in an XML document.
EntityReferencenodes may be used to represent an entity reference in the tree.Objects implementing the
NamedNodeMapinterface are used to represent collections of nodes that can be accessed by name.The
NameListinterface provides the abstraction of an ordered collection of parallel pairs of name and namespace values (which could be null values), without defining or constraining how this collection is implemented.The
Nodeinterface is the primary datatype for the entire Document Object Model.The
NodeListinterface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented.This interface represents a notation declared in the DTD.The
ProcessingInstructioninterface represents a "processing instruction", used in XML as a way to keep processor-specific information in the text of the document.The
Textinterface inherits from
CharacterDataand represents the textual content (termed character data in XML) of an
TypeInfointerface represents a type referenced from
Attrnodes, specified in the schemas associated with the document.When associating an object to a key on a node using
Node.setUserData()the application can provide a handler that gets called when the node the object is associated to is being cloned, imported, or renamed.