fixed some bug about xml, added remove all method