Could you please consider adding the following code to the file
administrator/components/com_csvi/models/exports.php?
Since the latest version of the component, my custom PHP scripts for XML export have stopped working. The new class loading mechanism no longer detects custom exporters located in the com_csvi/helper/file/export/xml/ directory. Adding this small fallback loader allows custom exporters to be loaded correctly again without affecting the core functionality.
in line 2053
protected function loadExportFile(): void
{
$this->setExportFormat();
$exportsite = match ($this->exportFormat)
{
'xml', 'html' => $this->template->get('export_site', 'csvimproved'),
default => 'csvimproved',
};
$classname = '\\Rolandd\\Component\\Rocsvi\\Site\\File\\Export\\' . ucfirst($this->exportFormat) . '\\' . ucfirst($exportsite);
if (!class_exists($classname))
{
$customFile = JPATH_ADMINISTRATOR . '/components/com_csvi/helper/file/export/' . strtolower($this->exportFormat) . '/' . ucfirst($exportsite) . '.php';
if (is_file($customFile))
{
require_once $customFile;
}
}
if (!class_exists($classname))
{
throw new \RuntimeException('Export class not found: ' . $classname);
}
$this->exportClass = new $classname($this->template);
}
This restores compatibility with custom XML export scripts that worked in previous versions of CSVI.
Thank you for considering this improvement.
Kind regards
Chris