Change-Id: I5a097beaaeb30214ed6071bba1297e551291922b
Contains common xml import and export filter logic.