Example usage for org.dom4j Branch remove

List of usage examples for org.dom4j Branch remove

Introduction

In this page you can find the example usage for org.dom4j Branch remove.

Prototype

boolean remove(ProcessingInstruction pi);

Source Link

Document

Removes the given ProcessingInstruction if the node is an immediate child of this branch.

Usage

From source file:com.xebia.mojo.dashboard.DashboardMojo.java

License:Apache License

private void removePlaceHolder(Branch dashboardTableDestination) {
    Node node = dashboardTableDestination.selectSingleNode("div[@class='section']/h2[text()='Dashboard']");

    if (node != null) {
        Element div = node.getParent();
        dashboardTableDestination.remove(div);
    }//from   ww  w  . j  a  va2s . c  om
}