minor optimiz. to XMLSerializer() polyfill