fix xml build errors