Why is it that the DOM interfaces like Document,Element, Node do not extend the Java Serializable interface?

Davanum Srinivas

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
And there is an excellent article in JavaWorld to get you started http://www.javaworld.com/javaworld/jw-05-2000/jw-0518-jdom.html
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact