Java XML Node Remove removeUserData(Node node, String key)

Here you can find the source of removeUserData(Node node, String key)

Description

remove User Data

License

Open Source License

Declaration

public static void removeUserData(Node node, String key) 

Method Source Code

//package com.java2s;

import org.w3c.dom.Node;

public class Main {
    public static void removeUserData(Node node, String key) {
        node.setUserData(key, null, null);

        Node child = node.getFirstChild();
        while (child != null) {
            removeUserData(child, key);/*from  w  w w.ja va  2  s  .  c  om*/

            child = child.getNextSibling();
        }
    }
}

Related

  1. removePreviousWhiteSpace(Node node)
  2. removeQueryCallBody(Node queryElement)
  3. removeSelf(Node node)
  4. removeTextNodes(Node parent)
  5. removeUndesiredContent(Node node)
  6. removeValue(NamedNodeMap values, String name)
  7. removeWhitespace(Node node, boolean deep)
  8. removeWhitespace(Node parent)
  9. removeWhitespaceNodes(Node e)