Ignore Null Fields in XML Writer

Is there a way to exclude null fields in the XML writer? If the field is null, I don’t want to output it in the XML Writer.

I’m afraid, it’s not possible with XML writer.

Regards,
Martin Varecha