Example usage for org.jsoup.nodes Node replaceWith

List of usage examples for org.jsoup.nodes Node replaceWith

Introduction

In this page you can find the example usage for org.jsoup.nodes Node replaceWith.

Prototype

public void replaceWith(Node in) 

Source Link

Document

Replace this node in the DOM with the supplied node.

Usage

From source file:com.cognifide.aet.job.common.comparators.source.visitors.MarkupVisitor.java

@Override
public void visit(Node node) {
    if (node instanceof TextNode || node instanceof Comment || node instanceof DataNode) {
        node.replaceWith(new TextNode(StringUtils.EMPTY, node.baseUri()));
    }//www .  j av a  2 s  . c  o m
}