Explicitly bind xmlns-namespaced attributes.

This fixes XML serialization in IE11. See also #1220 and #1238.