String toString( )

Print out a String representation of this Node.

Source

/**
 * Print out a String representation of this Node.
 */
String toString() {
  String value = nodeValue;  // Fetch DOM Node property once.
  return value == null ? super.toString() : value;
}