docs: public boolean exportXML(BaseTable table, String strFileName)
      {
      	Record record = table.getRecord();
          boolean bSuccess = true;
          File file = new File(strFileName);
          if (file.exists())
              file.delete();      // Delete if it exists
          else
          {
              String strPath = file.getParent();
              File fileDir = new File(strPath);
              fileDir.mkdirs();
          }
  
          XmlInOut.enableAllBehaviors(record, false, true); // Disable file behaviors
  
          Document doc = XmlUtilities.exportFileToDoc(table);
          
          try   {
              OutputStream fileout = new FileOutputStream(strFileName);
              Writer out = new OutputStreamWriter(fileout, XmlUtilities.XML_ENCODING);   //, MIME2Java.convert("UTF-8"));
  
              Utility.convertDOMToXML(doc, out);
  
              out.close();
              fileout.close();
          } catch (Exception ex)  {
              ex.printStackTrace();
              bSuccess = false;
          }
          XmlInOut.enableAllBehaviors(record, true, true);
          return bSuccess;
      }