We should probably split up `build_xml` into two functions to avoid it having to do so much and keep it small, e.g. `build_root_sitemap_xml` and `build_individual_sitemap_xml`