Amasty Feed Download Return Broken File

Amasty Feed Download Return Broken File

Hi,

We are using Amasty Feed V3.1.0 to generate a Google product feed. However, when the file is downloaded, it is not recognized as a valid XML file. Upon inspection, I discovered that the file begins with two 0A bytes (Line Feed) and is missing a closing ">" in the final tag.

I have confirmed multiple times that the header and footer settings for the feed are configured correctly. Additionally, the preview does not exhibit the same issue—the error only appears in the downloaded file.

Here is the XML template we are using:
Header
<?xml version="1.0"?> <rss version="2.0" xmlns:g="http://base.google.com/ns/1.0"><channel> <created_at>{{DATE}}</created_at>
Content
<g:id>{attribute="custom_field|wl_id" format="as_is" parent="no" optional="yes" modify="html_escape"}</g:id>
<g:item_group_id>{attribute="custom_field|wl_item_group_id" format="as_is" parent="no" optional="no" modify="html_escape"}</g:item_group_id>
<title>{attribute="custom_field|wl_title" format="as_is" parent="no" optional="yes" modify="html_escape|length:150"}</title>
<description>{attribute="product|short_description" format="as_is" parent="no" optional="no" modify="html_escape"}</description>
<link>{attribute="custom_field|wl_simple_url" format="as_is" parent="no" optional="yes" modify="html_escape"}</link>
<g:image_link>{attribute="image|thumbnail" format="as_is" parent="no" optional="yes" modify=""}</g:image_link>
<g:additional_image_link>{attribute="custom_field|wl_additional_image_link" format="as_is" parent="no" optional="yes" modify=""}</g:additional_image_link>
<g:condition>new</g:condition>
<g:price>{attribute="price|tax_final_price" format="price" parent="no" optional="yes" modify=""}</g:price>
<g:availability>{attribute="custom_field|wl_availability" format="as_is" parent="no" optional="yes" modify="html_escape"}</g:availability>
<g:gtin>{attribute="product|ean" format="as_is" parent="no" optional="yes" modify="html_escape"}</g:gtin>
<g:mpn></g:mpn>
<g:brand>Joie</g:brand>
<g:google_product_category>{attribute="product|google_product_category" format="as_is" parent="no" optional="yes" modify=""}</g:google_product_category>
<g:color>{attribute="product|color" format="as_is" parent="no" optional="yes" modify="html_escape"}</g:color>
<g:product_type>{attribute="mapped_category|google_category_1" format="as_is" parent="yes" optional="yes" modify="html_escape"}</g:product_type>
Footer
</channel> </rss>

Could you please assist us with this issue? Google continues to flag the file as a malformed XML, which is preventing us from proceeding.

Thanks in advance.

Best Regards,
Charlie