code: private void writeTextOnlyObject(Writer writer, int indentDepth, boolean contentOnly, boolean compact)
      throws IOException
      {
          if (logger.isLoggable(Level.FINER)) logger.entering(className, "writeTextOnlyObject(Writer, int, boolean, boolean)");
  
          if (!contentOnly)
          {
              writeAttribute(writer,this.objectName,this.tagText.trim(),indentDepth, compact);
          }
          else
          {
              if (!compact)
              {
                  writeIndention(writer, indentDepth);
                  writer.write("\"" + escapeStringSpecialCharacters(this.tagText.trim()) + "\"");
              }
              else
              {
                  writer.write("\"" + escapeStringSpecialCharacters(this.tagText.trim()) + "\"");
              }
          }
  
          if (logger.isLoggable(Level.FINER)) logger.exiting(className, "writeTextOnlyObject(Writer, int, boolean, boolean)");
      }
docs: Method to write a text ony XML tagset, like <F>FOO</F>
  @param writer The writer object to render the XML to.
  @param indentDepth How far to indent.
  @param contentOnly Whether or not to write the object name as part of the output
  @param compact Whether or not to write the ohject in compact form, or nice indent form.
  @throws IOException Trhown if an error occurs on write.