Add filter to export XML Fixes #240