add level data of xml