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