Java XML Node Remove removeValue(NamedNodeMap values, String name)

Here you can find the source of removeValue(NamedNodeMap values, String name)

Description

remove Value

License

Open Source License

Declaration

public static void removeValue(NamedNodeMap values, String name) 

Method Source Code

//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);
        }
    }
}

Related

  1. removeQueryCallBody(Node queryElement)
  2. removeSelf(Node node)
  3. removeTextNodes(Node parent)
  4. removeUndesiredContent(Node node)
  5. removeUserData(Node node, String key)
  6. removeWhitespace(Node node, boolean deep)
  7. removeWhitespace(Node parent)
  8. removeWhitespaceNodes(Node e)
  9. removeWhitespaceNodes(org.w3c.dom.Element e)