Issue #2387557 by Dave Reid: Support more advanced XML element output using format_xml_elements() within XMLSitemapWriter::writeElement().