Example usage for org.dom4j.tree DefaultEntity DefaultEntity

List of usage examples for org.dom4j.tree DefaultEntity DefaultEntity

Introduction

In this page you can find the example usage for org.dom4j.tree DefaultEntity DefaultEntity.

Prototype

public DefaultEntity(String name, String text) 

Source Link

Document

Creates the Entity with the specified name and text.

Usage

From source file:org.xwiki.rendering.renderer.printer.XMLWikiPrinter.java

License:Open Source License

public void printEntity(String entity) {
    try {// w w  w .  ja v  a 2s . c  om
        this.xmlWriter.write(new DefaultEntity(entity, entity));
    } catch (Exception e) {
        // TODO: handle exception
    }
}