Here you can find the source of removeAttribute(final Node node, final String name)
public static final void removeAttribute(final Node node, final String name)
//package com.java2s; //License from project: Apache License import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; public class Main { public static final void removeAttribute(final Node node, final String name) { if (node != null) { final NamedNodeMap namedNodeMap = node.getAttributes(); if (namedNodeMap != null) { namedNodeMap.removeNamedItem(name); }//from w w w .j a v a 2 s . co m } } }