[jdom-interest] Code submision: JDOM2 the dual tree

Rosen, Alex arosen at silverstream.com
Mon Nov 27 13:46:32 PST 2000

> > > ProcessingInstruction?
> >
> > Hangs off Document right now so doesn't come under the singly / doubly
> > linked tree discussion.
> Not true.  Elements can have PIs returned by getMixedContent().  A
> Document just has convenience accessor methods because that's where PIs
> commonly reside.

This has come up a few times... Perhaps this is a feature that causes more
problems that it solves? Removing these methods would get rid of 4 methods from
the API (3 gets and a set, right?), and reduce confusion. And the benefit they
provide is slight.

BTW, does the XML declaration show up in the Document's list of PIs? It's not
technically a PI, right? Perhaps Document should have get/setXMLDeclaration()
methods? (These could probably just take PI objects, since they're basically


More information about the jdom-interest mailing list