[jdom-interest] Element Reference from Attribute

Louis Tribble louis.tribble at metamata.com
Tue Nov 21 11:36:04 PST 2000

Jason Hunter wrote:
> > 1. Everything needs to know its parent. I don't really care if that
> > adds 4 bytes to each object.
> > 2. Using Strings instead of a Text class is extremely inconvenient.
> With a design so that getMixedContent() returned a list including node
> of type Text but getText(), or some such method, still returned a
> String?  It's a hard requirement that you can get a String from an
> Element.

It seems like it might be possible to store the String (as now)
until a client specifically requests a Text node (calls 
getMixedContent or whatever). Could something be done along this line 
for attributes as well? Maybe we can have our cake and eat it too, with
respect to memory usage.


Louis Tribble                                         louis at metamata.com
Metamata, Inc.                                   http://www.metamata.com
Tools for serious Java developers.                       +1 510 796 0915

More information about the jdom-interest mailing list