docs: public static String createXMLStringRecord(Record record)
      {
          String string = DBConstants.BLANK;
  
          DocumentBuilder db = Utility.getDocumentBuilder();
          DocumentBuilder stringdb = Utility.getDocumentBuilder();
          Document doc = null;
          synchronized (db)
          {
              doc = db.newDocument();
  
              Element elRoot = (Element)doc.createElement(ROOT_TAG);
              doc.appendChild(elRoot);
              try   {
                  XmlInOut.enableAllBehaviors(record, false, true); // Disable file behaviors
      
                  createXMLRecord(stringdb, record, doc, elRoot);
      
                  elRoot.appendChild(doc.createTextNode(XmlUtilities.NEWLINE));
              } catch (DBException ex)    {
                  ex.printStackTrace();
                  return DBConstants.BLANK;
              }
          }
          try   {
              StringWriter out = new StringWriter();  //, MIME2Java.convert("UTF-8"));
  
              // Use a Transformer for output
              TransformerFactory tFactory = TransformerFactory.newInstance();
              Transformer transformer = tFactory.newTransformer();
  
              DOMSource source = new DOMSource(doc);
              StreamResult result = new StreamResult(out);
              transformer.transform(source, result);
              out.close();
              string = out.toString();
  
              int iStartString = string.indexOf("<" + ROOT_TAG + ">") + 3 + ROOT_TAG.length();
              int iEndString = string.indexOf("</" + ROOT_TAG + ">");
              if (iStartString >= iEndString)
                  string = DBConstants.BLANK;
              else
                  string = string.substring(iStartString, iEndString);
          } catch (TransformerConfigurationException tce) {
              // Error generated by the parser
              tce.printStackTrace();
          } catch (TransformerException te) {
              // Error generated by the parser
              te.printStackTrace();
          } catch (Exception ex)  {
              ex.printStackTrace();
          }
          XmlInOut.enableAllBehaviors(record, true, true);
          return string;
      }