In the documentation for DOM, setAttribute(Element, String, String) is deprecated , saying to use “the more appropriately named setElementProperty(Element, String, String) instead.” Does that imply that one should be using the similarly named methods of Element ?