[jdom-interest] Introduction. JDOM for Java5?

Phil Weighill-Smith phil.weighill-smith at volantis.com
Sat Jan 28 00:59:06 PST 2006

I haven't looked at Content in 1.0 (note my comment re: moving away from JDOM), however I doubt it applies to attributes, processing instructions and the rest (or does it?). (M)Any of these types of thing can be returned from XPath processing...

	-----Original Message----- 
	From: Matthias Basler [mailto:Matthias.Basler at uni-jena.de] 
	Sent: Thu 1/26/2006 23:44 
	To: jdom-interest at jdom.org 
	Subject: Re: [jdom-interest] Introduction. JDOM for Java5?

	Phil wrote:
	> The one point I would make (again) is that all the "node" types should
	> implement a (placeholder) Node interface to allow the entire API to be
	> slightly more type safe (removing any Object references).
	The same critical comment was raised in the book "Processing XML with Java".
	However: There is a org.jdomContent class, which imho takes exactly this role.
	When calling f.e. Element:getContent(), you don't get a list of arbitrary
	Objects, but rather a list of <Content>, if I understand it right.
	.. And I don't see a reason why an _interface_ instead of this class would make
	things easier or more type save. (Maybe I misunderstand your problem, since I am
	new to this API as well.)
	Matthias Basler
	c9bama at uni-jena.de
	This mail was sent through http://webmail.uni-jena.de

More information about the jdom-interest mailing list