Use SimpleXML for XML construction.

Replace instances of XML-by-string-concatenation with SimpleXML-based construction. This also makes evident some redundancy in templates/full-sitemaps.php which should be addressed in the future.
Fixes #28