functionality to open xml files