public static void exportFileToDOM(DocumentBuilder stringdb, BaseTable table, Document doc, Element elRoot)
    {
        try   {
            table.close();
            while (table.hasNext())
            {
            	table.next();
            	Record record = table.getRecord();
                XmlUtilities.createXMLRecord(stringdb, record, doc, elRoot);
            }
            elRoot.appendChild(doc.createTextNode(NEWLINE));
        } catch (DBException ex)    {
            ex.printStackTrace();
            System.exit(0);
        }
    }
public static void exportFileToDOM ( DocumentBuilder stringdb , BaseTable table , Document doc , Element elRoot ) { try { table . close ( ) ; while ( table . hasNext ( ) ) { table . next ( ) ; Record record = table . getRecord ( ) ; XmlUtilities . createXMLRecord ( stringdb , record , doc , elRoot ) ; } elRoot . appendChild ( doc . createTextNode ( NEWLINE ) ) ; } catch ( DBException ex ) { ex . printStackTrace ( ) ; System . exit ( 0 ) ; } }
Export this table.
@record The record to export.
@strFileName The distination filename (deleted the old copy if this file exists).