Factorize xmlEnvBegin (1.1/1.2) & xmlEnvEnd from all unittests.