resolve the xml collection problems