import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; /** * * * @author Costin Manolache */ public class Main { public static void removeAttribute( Node node, String attName ) { NamedNodeMap attributes=node.getAttributes(); attributes.removeNamedItem(attName); } }