HOWTO Avoid Being Called a Bozo When Producing XML
"There seem to be developers who think that well-formedness is awfully hardif not impossibleto get right when producing XML programmatically and developers who can get it right and wonder why the others are so incompetent."