D365 Intrastat Electronic Reporting

Dear all,

I am using Electronic Reporting in D365 and I want to generate an xml file. I created the format designer for the xml file and the xml file is created.

Do you know if there is any way to prevent the appearance of an xml node based on a formula/ condition?

Many thanks!