Implemented import xml functionality