jhunter at collab.net
Tue Aug 22 14:40:01 PDT 2000
this. What I'm thinking about is something like this:
> org.w3c.dom.Element output(org.jdom.Element e)
Makes sense, goes along with the similar method that's to be added to
DOMBuilder. I'm adding it to TODO.txt.
> Is there any speed/memory increase in avoiding filling a DOM
> Document and then scraping out what is needed by implementing
> the above method calls or something like them that deals with
>fragments rather than whole documents?
Yeah, if you want to convert just one element of a thousand, you don't
have to do the other 999.
> I guess you're always going to have to create a Document object so
> you can get at it's factory methods huh?
Yep, but only a doc, not the other elts.
> (whose idea was that anyway :-) )
It's an artifact of choosing a pure interface implementation with
construction done via factories. A design decision we opted away from.
More information about the jdom-interest