code: public void addDataElement(String elemName, String content, String attrName, String attrValue) {
          AttributesImpl attrs = new AttributesImpl();
          attrs.addAttribute("", attrName, "", "CDATA", attrValue);
          writeDataElement(elemName, attrs, content);
      }
docs: Same as above but with a single attribute name/value pair as well.