- generated markup is now well formed XML

- XML doc types should be uppercase.

- added a few new lines so that all elements are on their own line