modify xmlConfig about choose xml or annotation