parse xml directly from file