Optimize xml configuration