parse a xmlfile