Technote Details :: CSV Export does not work from included files
Issue
When using MX CSV to implement an export operation, and I use MX Includes to load the export page, the CSV file that is saved contains <html> tags at the beginning:

Reason
This happens because MX Includes adds all the tags before (and including) the <body> tag to the included files. The usual code that will appear in the CSV files, if using MX Includes to include the CSV export page is as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
Solution
In order to use CSV Export with MX Includes, you must manually remove the added tags from the exported CSV file. It is however recommended not to use MX Includes to include an export page. The CSV export should be accessed directly.