Why is it that the DOM interfaces like Document,Element, Node do not extend the Java Serializable interface?
The DOM interfaces are actually specified in OMG IDL, so that the DOM can be available in multiple programming languages. Implementations of the DOM in Java can also implement the Serializable Java interface but they are not part of the DOM standard.
An alternative is to use JDOM. It is completely Java-centric. Some of the other features are:
- Implements Serializable, Clonable interfaces for Document, Element etc.
- Uses Java2 Collections API
- Interoperates with DOM and SAX API's