read the xml in order to cache it