Report error when exporting XML

Return false if the export fails.