break dependency of cc packages on cc.shell by moving some XML utils to util.X