Hello this is my file views-view-field--sitemap--views-data-export--field-image.tpl.php :
<?php $fields["field_image"]->content = '<image:loc>' . $field->original_value . '</image:loc>' . '<image:title>' . $row->field_field_image['rendered']['#item']["alt"] . '</image:title>'; echo $fields["field_image"]->content;
When I check the box to hide empty if the image field, the empty fields are hidden in the preview of view but not out. How to hide empty fields when the view is displayed? I think there is a line to add in the template file.