[jdom-interest] Subclassing Element/Attribute

Les Hill leh at galaxynine.com
Fri Jul 19 07:56:19 PDT 2002


From: <daves.subscriptions at SAFe-mail.net>
> Could someone please post an example of how to get subclasses of Element
and Attribute instantiated instead of the JDOM versions?

Not an example, but should be easy to implement yourself (my code has lots
of extras that cloud the issue :)

- Subclass JDOMFactory (this is can be very easy in a simple use scenario)
- Before using your Builder to read the JDOM document, use
  builder.setFactory(myFactory);

You are done.

Les Hill
leh at galaxynine.com





More information about the jdom-interest mailing list