Example usage for org.dom4j Branch setContent

List of usage examples for org.dom4j Branch setContent

Introduction

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

Prototype

void setContent(List<Node> content);

Source Link

Document

Sets the contents of this branch as a List of Node instances.

Usage

From source file:org.withinsea.izayoi.commons.dom.DOMUtils.java

License:Mozilla Public License

public static Branch surroundBy(List<Node> nodes, Branch wrapper)
        throws InvocationTargetException, IllegalAccessException {
    replaceBy(nodes, wrapper);// w w w  .  j  a v a  2s  . c  o m
    wrapper.setContent(nodes);
    return wrapper;
}