> Using instanceof in large > systems that import third party libraries is not [a "code smell"]. The only problem is that you can't tell in advance when it's going to break: as when you've written "x instanceof Element" and then discover to your horror that Oracle's implementation of a document node also implements the Element interface. Michael Kay