xml is being fetched properly but not parsed properly