The XmlUtils class is both somewhat archaic and messy. Time and again I'm looking for elegant methods to create Xml documents. We should move to extension methods where necessary. This ticket is about creating the first extension methods to add elements and attributes and allow these methods to be chained. A pull request will follow.
Closing per code review by Ben