Added support for newer versions of IE which have XMLSerializer available.