Parses xml file