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