modify entity xml code