XMLgenerator with pool functions implemented