split xmls into groups