code: public void writeElement(String name, Object text)
    {
      startElement(name);
      writeText(text);
      endElement(name);
    }
docs: Convenience method, same as doing a startElement(), writeText(text),
  endElement().