D-Programming-Language/phobos — pull request #1558 by rainers (2013-09-10 07:28:40+00:00)
Title:  Issue 11005 - std.xml does not encode attributes

I had this lurking in my code base for some time as a patch for Visual D.

http://d.puremagic.com/issues/show_bug.cgi?id=11005