public void characters(String s,boolean useCData) throws IOException {
  if (s == null) {
    return;
  }
  endOpenTag();
  currentElement().unformattedChildren=true;
  String escaped;
  if (useCData) {
    escaped="<![CDATA[" + StringUtil.xmlCDataEscape(s) + "]]>";
  }
 else {
    escaped=StringUtil.xmlContentEscape(s);
  }
  writer.write(escaped);
}

public void characters ( String s , boolean useCData ) throws IOException { if ( s == null ) { return ; } endOpenTag ( ) ; currentElement ( ) . unformattedChildren = true ; String escaped ; if ( useCData ) { escaped = "<![CDATA[" + StringUtil . xmlCDataEscape ( s ) + "]]>" ; } else { escaped = StringUtil . xmlContentEscape ( s ) ; } writer . write ( escaped ) ; }
emits character data subject to either xml escaping or cdata escaping .
