public void cData(SimplePath path, String cdata) {
      if (previousCallbackWasCDATA)
        fail(
            "No two cData callbacks may follow each other, as this violates the maximum chunk guarantee given in API spec");
      previousCallbackWasCDATA = true;

      log(path.toString() + "/text():");
      String encodedText = XMLEncode.xmlEncodeText(cdata);
      log(encodedText);
    }
 public void startElement(
     SimplePath path, String name, AttributesImpl attributes, String leadingCDdata) {
   previousCallbackWasCDATA = false;
   log(path.toString() + ":");
   String startTag = XMLWriter.createStartTag(name, attributes);
   log(startTag);
   if (leadingCDdata != null) {
     String encodedText = XMLEncode.xmlEncodeText(leadingCDdata);
     log(encodedText);
   }
 }