[jdom-interest] Why no Node interface?
kenneth.lee at alfacomtech.com
Mon Nov 27 01:35:56 PST 2000
Althought it may make the API a bit more heavier (and more like DOM), I
still think that having Element and Attribute (or other node types)
implement the same Node interface is a good idea. If so then I can eliminate
many of my instanceof checks to distinguish between Element and Attribute.
e.g. ((Node) obj).getText();
Is it the only way for using instanceof?
More information about the jdom-interest