Here you can find the source of removeValue(NamedNodeMap values, String name)
public static void removeValue(NamedNodeMap values, String name)
//package com.java2s; /******************************************************************************* * Copyright (c) 2004-2010 Sunil Kamath (IcemanK). All rights reserved. This * program is made available under the terms of the Common Public License v1.0 * which is available at http://www.eclipse.org/legal/cpl-v10.html * //w w w .java 2s. c om * Contributors: Sunil Kamath (IcemanK) - initial API and implementation *******************************************************************************/ import org.w3c.dom.*; public class Main { public static void removeValue(NamedNodeMap values, String name) { if (values.getNamedItem(name) != null) { values.removeNamedItem(name); } } }