Get an attribute of a dom node May 6, 2023 by Tarik Your node is an Element so you just have to Element e = (Element)node; String name = e.getAttribute("name");