Import xml function

not tested.... should work