Update: Inbal posted an updated version of the sitemap code you also included in your article and if possible she'd like to let the world know about the update. Her last post from here contains the updated code.