Fix #1244: XML config namespace copying broken on PHP 5.2.12/5.3.2. This way of setting attributes is actually correct; it was wrong before and that's probably why it broke. Mind you we're intentionally omitting pure xmlns attributes; see #853 for details. Also dropped the (now redundant) saving and re-loading of the document; calling normalize() instead would have been faster, but it's entirely unnecessary now.