Enhance:optimize xmltocs