Example usage for org.w3c.dom Comment getLength

List of usage examples for org.w3c.dom Comment getLength

Introduction

In this page you can find the example usage for org.w3c.dom Comment getLength.

Prototype

public int getLength();

Source Link

Document

The number of 16-bit units that are available through data and the substringData method below.

Usage

From source file:TreeDumper2.java

private void dumpCommentNode(Comment node, String indent) {
    System.out.println(indent + "COMMENT length=" + node.getLength());
    System.out.println(indent + "  " + node.getData());
}