List of usage examples for org.dom4j Branch remove
boolean remove(ProcessingInstruction pi);
ProcessingInstruction
if the node is an immediate child of this branch. 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 }