Right now it is not possible to collapse the xml elements in the editor. 