Sitemaps empty in iOS app

i am not entirely sure what the root-cause was 2 years ago but there were some issues with the textual sitemap. ( that were still created under 2.0 ) I have solved it by starting with an empty sitemap and then copy / paste more and more code to the sitemap and looked where it did brake, then fixed it. Some dirty code is depreciated with 3.0. The code I am using since that time is still working, also with the latest IOS update.