The addition of the hasAttributes() method was decided by the W3C DOM WG
last week on my request. I implemented it right away and didn't realize
xalan depended on this interface and would break. Sorry about that.
It is trivial to fix though.
Note that the addition of this method was motivated by the fact that in
some implementations, such as Xerces, smaller memory footprint can be
achieved if instead of calling directly getAttributes(), you guard it
with a test of hasAttributes(). The point is that on an element without
any attributes you'll save the creation of a NamedNodeMap. I therefore
recommend everybody to update their code along those lines.
-- 
Arnaud  Le Hors - IBM Cupertino, XML Technology Group

PS: xerces-dev is dead. You should use xerces-j-dev instead.

Reply via email to