open(); /* create a new table */ $tableNew = XBaseWritableTable::cloneFrom($tableParent); $tableNew->openWrite("test/created.dbf",true); while ($record=$tableParent->nextRecord()) { $tableNew->appendRecord(); $tableNew->record->copyFrom($record); $tableNew->writeRecord(); } $tableNew->close(); $tableParent->close(); /* open created file*/ $table = new XBaseTable("test/created.dbf"); $table->open(); /* xml output */ echo "
\n";
    echo htmlspecialchars($table->toXML());
    echo "
\n"; /* close the table */ $table->close(); ?>