Java XML Node Remove removeQueryCallBody(Node queryElement)

Here you can find the source of removeQueryCallBody(Node queryElement)

Description

remove Query Call Body

License

Open Source License

Declaration

public static Node removeQueryCallBody(Node queryElement) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import org.w3c.dom.Node;

public class Main {
    public static Node removeQueryCallBody(Node queryElement) {
        if ("QueryRequest".equals(queryElement.getNodeName())) {
            return queryElement.getFirstChild().getFirstChild();
        }/*from w  ww .j a va2 s.c  o  m*/
        return null;
    }
}

Related

  1. removeNode(Node node)
  2. removeNodeFromParent(Node node)
  3. removeNodes(Element parent, NodeList elements)
  4. removeNodesByName(Node node, String name)
  5. removePreviousWhiteSpace(Node node)
  6. removeSelf(Node node)
  7. removeTextNodes(Node parent)
  8. removeUndesiredContent(Node node)
  9. removeUserData(Node node, String key)