protected void writeNodeText(Node node) throws IOException {
  String text=node.getText();
  if ((text != null) && (text.length() > 0)) {
    if (escapeText) {
      text=escapeElementEntities(text);
    }
    lastOutputNodeType=Node.TEXT_NODE;
    writer.write(text);
  }
}

protected void writeNodeText ( Node node ) throws IOException { String text = node . getText ( ) ; if ( ( text != null ) && ( text . length ( ) > 0 ) ) { if ( escapeText ) { text = escapeElementEntities ( text ) ; } lastOutputNodeType = Node . TEXT_NODE ; writer . write ( text ) ; } }
this method is used to write out nodes that contain text and still allow for xml : space to be handled properly .
