split general tree parsing and element infos generation