public void toXml(StringBuffer buf) {
   int indent = getXmlIndentLevel();
   BigrXmlUtils.writeElementStartTag(buf, "formElements", indent);
   buf.append('>');
   QueryFormDefinitionElement[] elements = getQueryFormElements();
   for (int i = 0; i < elements.length; i++) {
     elements[i].setXmlIndentLevel(indent + 1);
     elements[i].toXml(buf);
   }
   BigrXmlUtils.writeElementEndTag(buf, "formElements", indent);
 }
 public void toXml(StringBuffer buf) {
   BigrXmlUtils.writeElementStartTag(buf, "dataElementDefinitionReference", getXmlIndentLevel());
   BigrXmlUtils.writeAttribute(buf, "cui", getCui());
   buf.append("/>");
 }