public String text ( ) { final StringBuilder sb = new StringBuilder ( ) ; for ( Object child : this . children ) { if ( child instanceof Node ) { sb . append ( ( ( Node ) child ) . text ( ) ) ; } else { sb . append ( child ) ; } } return sb . toString ( ) ; }
Returns a string containing the text of the children of this Node .