-Fixed performance issue serializing XML document with a large number of nodes